HTML Tags for Editor

We only support a very strict subset of HTML. You can achieve different display effects by wrapping multiple layers of tags. Unsupported tags and all contents wrapped by it will be deleted.

Standard HTML Tags

<br> <hr> <b></b> <i></i> <u></u> <s></s> <pre></pre> <ul></ul> <ol></ol> <li></li> <h2></h2> <h3></h3> <h4></h4> <var></var> <sub></sub> <sup></sup> <del></del> <ins></ins> <ruby></ruby> <rtc></rtc> <rt></rt> <rb></rb> <rp></rp> <a></a> <img> <font></font> <code></code> <blockquote></blockquote>

All attributes for standard html tags will be removed by default, except for the attributes allowed in the list below.

a

Only attribute href allowed.
Example: <a href="https://google.com">Google</a>

img

Only attribute src allowed. And only uploaded images allowed
Example: <img src="attach:6139894f5b3c7a09b7951b85_720_350_35602.jpeg"/>

font

Only attribute color allowed.
Example: <font color="red">Red color text</font>

The available values for the color attribute are the following color names or standard hexadecimal color values.
aliceblue antiquewhite aqua aquamarine azure beige bisque black blanchedalmond blue blueviolet brown burlywood cadetblue chartreuse chocolate coral cornflowerblue cornsilk crimson cyan darkblue darkcyan darkgoldenrod darkgray darkgreen darkgrey darkkhaki darkmagenta darkolivegreen darkorange darkorchid darkred darksalmon darkseagreen darkslateblue darkslategray darkslategrey darkturquoise darkviolet deeppink deepskyblue dimgray dimgrey dodgerblue firebrick floralwhite forestgreen fuchsia gainsboro ghostwhite goldenrod gold gray green greenyellow grey honeydew hotpink indianred indigo ivory khaki lavenderblush lavender lawngreen lemonchiffon lightblue lightcoral lightcyan lightgoldenrodyellow lightgray lightgreen lightgrey lightpink lightsalmon lightseagreen lightskyblue lightslategray lightslategrey lightsteelblue lightyellow lime limegreen linen magenta maroon mediumaquamarine mediumblue mediumorchid mediumpurple mediumseagreen mediumslateblue mediumspringgreen mediumturquoise mediumvioletred midnightblue mintcream mistyrose moccasin navajowhite navy oldlace olive olivedrab orange orangered orchid palegoldenrod palegreen paleturquoise palevioletred papayawhip peachpuff peru pink plum powderblue purple rebeccapurple red rosybrown royalblue saddlebrown salmon sandybrown seagreen seashell sienna silver skyblue slateblue slategray slategrey snow springgreen steelblue tan teal thistle tomato turquoise violet wheat white whitesmoke yellow yellowgreen

code

Basically inherited from the standard code tag, here are some common examples.

Simple inline code.
Example: <code>var foo = 1024;</code>

You may need to use it with the literal tag to output the raw content in the code tag as is.
Example: <code><literal>Your Code Here</literal></code>

Wrap a pre tag to preserves both spaces and line breaks.
Example: <pre><code><literal>Your Code Here</literal></code></pre>

Wrap a p tag to display as a block.
Example: <p><pre><code><literal>Your Code Here</literal></code></pre></p>

Code color to blue.
Example: <p><pre><code><font color="blue"><literal>Your Code Here</literal></font></code></pre></p>

Special HTML Tags

align

Specifies the horizontal alignment of text in an element.
Example 1, aligns the text to the left:
<align dir="left">Left</align>
Example 2, aligns the text to the right:
<align dir="right">Right</align>
Example 3, centers the text:
<align dir="center">Center</align>
Example 4, stretches the lines so that each line has equal width (like in newspapers and magazines):
<align dir="justify">Justify</align>

spoiler

Set text as spoiler.
Example: <spoiler>In the end they lived a happy life</spoiler>

literal

Skip compilation for all its children. You can use this for displaying raw html tags.
Example 1: <literal>code is: <b>Bold Text</b></literal>
Example 2, use with pre tag: <pre><literal>Bold: <b>Bold Text</b> Underline: <u>Bold Text</u></literal></pre>
Example 2, use with code tag: <code><literal>Bold: <b>Bold Text</b> Underline: <u>Bold Text</u></literal></code>

HTML Entities & Symbols

Insert a space

&nbsp;

For a full list, please go to HTML Entity Reference.

Insert a smiley emoji

&#128512;

For a full list, please go to HTML Emoji Reference.