Hello, I have develop application and I write a function javascritp for calculated the difference between two dates.
When load page, show the following error
Error Parsing /contrato.xhtml: Error Traced[line: 71] The content of elements must consist of well-formed character data or markup.,
In the line 71 I write a condition if (dias<0).
When delete condition if or change opeator < for ==, is OK.
The problem is what I need use operator < but show error, I found in Internet but I not founded solution.
I need help please to resolve problem.
Thank You.
use the CDATA "tags":
<script type="text/javascript">
<![CDATA[
//content of your Javascript goes here
]]>
</script>