Fórum

W3C HTML validation

thumbnail
Lionel Ferrer, modificado 11 Anos atrás.

W3C HTML validation

Junior Member Postagens: 42 Data de Entrada: 03/08/12 Postagens Recentes
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, modificado 11 Anos atrás.

RE: W3C HTML validation

Liferay Legend Postagens: 1902 Data de Entrada: 10/03/08 Postagens Recentes
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.