Small Text field renders HTML after submit – bug or expected behavior?

Hi team,

I am testing Frappe v15 and noticed an issue with Small Text fields.

Steps to reproduce

  1. Create a submittable DocType
  2. Add a Small Text field
  3. Enter <h1>Hello</h1> in the Small Text field
  4. Save and submit the document

Actual behavior

HTML content is rendered after submit.

Expected behavior

Small Text should always escape HTML and render plain text.
HTML rendering should be limited to HTML or Text Editor fields.

Could you please confirm whether this is a bug or expected behavior?

in Draft

After Submit