Fórumok
W3C HTML validation
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&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&p_p_col_count=1&_3_struts_action=%2Fsearch%2Fsearch&_3_redirect=%2F" id="search-form"> "
"& 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&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&p_p_col_count=1&_3_struts_action=%2Fsearch%2Fsearch&_3_redirect=%2F" id="search-form"> "
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.