1

Topic: Allowing 'equalto' in 'input'

Hi,

htmlawed removing equalto element into input type text.

before convert
<input id="captcha" name="captcha" equalto="#captchaString" title="Please enter the same value as image." type="text" />

after convert
<input id="captcha" name="captcha" title="Please enter the same value as image." type="text" />

so can we allow to add equalto into htmLawed class code

reply me solution

2

Re: Allowing 'equalto' in 'input'

[sorry for prematurely closing your previous topic on this]

Try editing function hl_tag of the code. Look for

// open tag & attr
static $aN = array('abbr'=>array('td'=>1, 'th'=>1), ...

and change to

// open tag & attr
static $aN = array('equalto'=>array('input'=>1), 'abbr'=>array('td'=>1, 'th'=>1), ...