REST API. Getting error during posting new message
Hello guys,
I get the following error when I'm try to post new message on a board via Lithium REST API:
message.body: Your post has been changed because invalid HTML was found in the message body. The invalid HTML has been removed. Please review the message and submit the message when you are satisfied.
My orginal text is the following:
<p><p class="bold">Text of description.</p></p><p>Text of description.</p><p><p class="italic">Text of description.</p></p><p>Text of description.</p><p><p class="underline">Text of description.</p></p><p>Text of description.</p><p><p>Text of description.</p></p>
As far as I remember Lithium has the following constraints on using HTML code:
basicHTMLTags = br,p:class,a:href|target|rel|title,div,li-video:vid|align|size|width|height|originalwidth|originalheight|thumbnail|uploading|external|cid|pid|unm,li-spoiler
simpleHTMLTags = a:href|target|rel|title,b,i,p:align|class,u,br,em,hr,ol,li,ul,pre,div:align|class,img:src|width|height|alt|title|border|align,font:face|size|color,span:class,span:style,center,strike,strong,blockquote:dir,li-video:vid|align|size|width|height|originalwidth|originalheight|thumbnail|uploading|external|cid|pid|unm,table:cellspacing|cellpadding|border,tr,td,li-spoiler
superSimpleHTMLTags = a:href|target|rel|title,b,i,p:align|class,u,br,em,hr,ol,li,ul,pre,div:align|class,font:face|size|color,span:class,center,strike,strong,blockquote:dir,li-video:vid|align|size|width|height|originalwidth|originalheight|thumbnail|uploading|external|cid|pid|unm,li-spoiler
As you can see my original text is fully matched basicHTMLTags.
So I don't understand why this wired error is occurred. Could anyone can explain me?