Forum Discussion
Hi iahiqosolutions,
It looks like the HTML you are using isn't valid. When I when put it through an HTML validator it returns several errors, specifically around putting a p tag inside of another p tag. When I use this in a normal post on one of our test communities I get the same error and the HTML is changed to look like this:
<p class="bold">Text of description.</p>
<p>Text of description.</p>
<p class="italic">Text of description.</p>
<p>Text of description.</p>
<p class="underline">Text of description.</p>
<p>Text of description.</p>
<p>Text of description.</p>
You are correct that we do have an HTML parser that limits what tags users can use in posts. However, there is also a validation step that validates the HTML and removes anything that is invalid (such as HTML that is incorrectly formatted or tags that don't exist). This is the cause of the error you are running into. Can you try using the above HTML I pasted and seeing if that works out?
Have a great day!
Hello AllenS,
The HTML code that you suggested is working perfectly well,
but there is a moment which is not clear for me:
How can I switch HTML set that is currently used by Lithium(superSimpleHTMLTags, simpleHTMLTags, basicHTMLTags)?
Can I create my own HTML tag set?(for example, I want to allow to use each user tag "img")
- AllenS13 years agoKhoros Alumni (Retired)
iahiqosolutions wrote:
Hello AllenS,
The HTML code that you suggested is working perfectly well,
but there is a moment which is not clear for me:
How can I switch HTML set that is currently used by Lithium(superSimpleHTMLTags, simpleHTMLTags, basicHTMLTags)?Can I create my own HTML tag set?(for example, I want to allow to use each user tag "img")
Hi iahiqosolutions,
I'm glad to hear that worked out!
Changing which tags the HTML parser allows is something the Lithium team will have to adjust for you on the backend. If you file a support case with the changes you would like to make we can go ahead and set that up on stage for you to review. You can submit a support case by accessing the Lithium support portal on the Lithosphere or by e-mailing support@lithium.com directly.
Have a great day!
- iahiqosolutions13 years agoAdvisorBy the way I have found good article in TKB that can be helpful for anybody else: http://lithosphere.lithium.com/t5/Support-Knowledge-Base/Allowed-HTML-Tags/ta-p/57476