Apache slabs convert open tag and close tag without content to empty tag

Apache slabs convert an open tag and a close tag without content into an empty tag.

For example, it <script src="some.js"></script>will be written as <script src="some.js"/>that breaks my HTML.

How to prevent this behavior?

+3
source share
4 answers

The solution below works. Here's how Spring Roo circumvents this issue.

<script src="some.js"><!----></script>
+2
source

" HTML"? , validator.w3.org? XML. DTD HTML-? XHTML, .

. text/html application/xhtml+xml? , - XHTML, text/html.

0

script , , Tiles. &nbsp;. Tiles , - , , , javascript?

0

, ?

<script src="some.js" type="text/javascript"></script>

<script src="some.js" type="text/javascript">&nbsp;</script>

Not too sure that the above will even solve the verification problem, even if it works

-1
source

Source: https://habr.com/ru/post/1719090/


All Articles