i have a problem with the method appendHTML(), specifically with the w3 validation. It can happen that sometimes there is not valid html (For example: <p>Text....<p></ p></ p>),and then the page is in error:
- Code: Select all
The element 'p' in namespace 'http://www.w3.org/1999/xhtml' has invalid child element 'p' in namespace 'http://www.w3.org/1999/xhtml'. List of possible elements expected: 'http://www.w3.org/1999/xhtml:a http://www.w3.org/1999/xhtml:br http://www.w3.org/1999/xhtml:span http://www.w3.org/1999/xhtml:bdo http://www.w3.org/1999/xhtml:object http://www.w3.org/1999/xhtml:applet http://www.w3.org/1999/xhtml:img http://www.w3.org/1999/xhtml:map http://www.w3.org/1999/xhtml:iframe http://www.w3.org/1999/xhtml:tt http://www.w3.org/1999/xhtml:i http://www.w3.org/1999/xhtml:b http://www.w3.org/1999/xhtml:u http://www.w3.org/1999/xhtml:s http://www.w3.org/1999/xhtml:strike http://www.w3.org/1999/xhtml:big http://www.w3.org/1999/xhtml:small http://www.w3.org/1999/xhtml:font http://www.w3.org/1999/xhtml:basefont http://www.w3.org/1999/xhtml:em http://www.w3.org/1999/xhtml:strong http://www.w3.org/1999/xhtml:dfn http://www.w3.org/1999/xhtml:code http://www.w3.org/1999/xhtml:q http://www.w3.org/1999/xhtml:samp http://www.w3.org/1999/xhtml:kbd http://www.w3.org/1999/xhtml:var http://www.w3.org/1999/xhtml:cite http://www.w3.org/1999/xhtml:abbr http://www.w3.org/1999/xhtml:acronym http://www.w3....
My question is whether it is possible to bypass this control or manage it in some way ?
In addition, there is a method to check if the text is OK or not to w3 validation? So we can periodically clean the database without the user crashed the system
Thank you