Fórumok

W3C HTML validation

thumbnail
Lionel Ferrer, módosítva 11 év-val korábban

W3C HTML validation

Junior Member Bejegyzések: 42 Csatlakozás dátuma: 2012.08.03. Legújabb bejegyzések
I got this message from W3C validator:
"& did not start a character reference. (& probably should have been escaped as &.)"

The problem is the next:
Inside the action of search form I have a bunch of "&" ... can I replace this character in some way?... or this validation error is common and I can't fix it?

"<form onsubmit="ctem_3_search(); return false;" name="ctem_3_fm" method="get" action="http://www.miem.gub.uy/home?p_p_id=3&amp;p_p_lifecycle=0&amp;p_p_state=maximized&amp;p_p_mode=view&amp;p_p_col_count=1&amp;_3_struts_action=%2Fsearch%2Fsearch&amp;_3_redirect=%2F" id="search-form"> "
thumbnail
Samuel Kong, módosítva 11 év-val korábban

RE: W3C HTML validation

Liferay Legend Bejegyzések: 1902 Csatlakozás dátuma: 2008.03.10. Legújabb bejegyzések
This is your own custom portlet, correct? You can either use <aui:form> which will automatically escape the data for you. Or you can use one of the escape methods in HtmlUtil to escape the URL.