Text markup and formatting in News Feed
This article describes how HTML formatting works in the Admin Panel. It explains which tags are supported and how the editor handles unsupported tags.
Supported HTML Tags
In the table below, you can see all supported tags and their description.
| Paragraph | <p></p> |
|---|---|
| Bold text | <b></b>, <strong></strong> |
| Italic text | <i></i>, <em></em> |
| Underlined text | <u></u> |
| Strikethrough text | <s></s>, <del></del>, <strike></strike> |
| Link | <a href="url"></a> |
| Unordered list | <ul></ul>, <li></li> |
| Ordered list | <ol></ol>, <li></li> |
Why HTML code appears as plain text
Text Editor treats HTML code as plain text to prevent unwanted formatting and to ensure the code is displayed exactly as the admin types it. When you paste HTML code, it will be displayed like this:
Here is an example of the HTML code:
<p>This is a sample paragraph.</p><h1>Unsupported Heading</h1><div>This is a div block that should be displayed as plain text.</div><p><b>Bold text</b> and <i>Italic text</i> with an <a href="https://example.com">Example Link</a>.</p><p>Here is an image that should be removed:</p><img src="https://example.com/image.jpg" alt="Sample Image"><ul> <li>Unordered list item</li> <li>Another item</li></ul><ol> <li>Ordered list item</li> <li>Another step</li></ol>HTML sanitization
The HTML sanitization happens when the admin switches to the Code View, pastes the HTML, switches back to the standard view, and then saves or publishes the post. During this process:
- The editor displays content from unsupported tags, such as
<h1>and<div>, as plain text. - It removes some unsupported tags completely, such as
<img>.
Code View behavior
When the admin switches to Code View, pastes the content, and switches back to the standard view, unsupported tags such as headings remain visible and formatted.
However, they will be removed when the post is saved or published.
Updated 15 days ago

