deal with legacy html5

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

deal with legacy html5

tom.wang
i have a piece of html code of String to be inserted into my page,the html like this:
String s = "<div lang=en-us>aaa</div>";
notice it's attribute has't quote,

it will cause
org.xml.sax.SAXParseException: Open quote is expected for attribute "{1}" associated with an  element type  "lang".

so i change templateresolve mode to LEGACYHTML5
it show
org.thymeleaf.exceptions.ConfigurationException: Cannot perform conversion to XML from legacy HTML: The nekoHTML library is not in classpath. nekoHTML 1.9.15 or newer is required for processing templates in "LEGACYHTML5" mode [http://nekohtml.sourceforge.net]. Maven spec: "net.sourceforge.nekohtml::nekohtml::1.9.15". IMPORTANT: DO NOT use versions of nekoHTML older than 1.9.15.

so i add dependency of nekoHTML to my pom.xml
but it still show as above,why?
anybody help please
Reply | Threaded
Open this post in threaded view
|

Re: deal with legacy html5

Zemi
Administrator
Hello,

if it still says that NekoHTML is not in the classpath, it someway is not in the classpath, so you'll have to double check it.

Try to rebuild your project from scratch (clean and build) and look for NekoHTML .jar at you runtime directories (this is WEB-INF/lib inside your webapp directory).

Regards,
  Zemi

Reply | Threaded
Open this post in threaded view
|

Re: deal with legacy html5

tom.wang
thank you ,it because i haven't update the maven dependency manually