select option always add break line tag

Permalink
why when i insert select option in user attribut, it always include break line tag <br>, and without end slash. :)

value result i see via viewsource firefox
<option value="Yes&lt;br&rt;">Yes<br><option>
<option value="No&lt;br&rt;">No<br><option>


can i clean this br tag?

fastcrash
 
itrio replied on at Permalink Reply
itrio
Are you sure it is a bug? It looks like the <br> comes from the value you set yourself.

<option value="Yes&lt;br&rt;">Yes<br><option>
<option value="No&lt;br&rt;">No<br><option>


Look at the value, the "&lt;br&rt;" means "<br>".
fastcrash replied on at Permalink Reply
fastcrash
thanks for reply paalgg, i added option list from user atrribut, and never change core. and i 'm sure i m not added <br> tag or hit enter for new line in input value.

the <br> tags, comes from the core getDisplayValue() funtion.
root/concrete/models/attribute/types/select/contoller.php

i think this the model where used in dasboard user attribut.

paalgg, you can try adding user attribut with select option and see the result via 'view source' in profile view.

thanks
fastcrash replied on at Permalink Best Answer Reply
fastcrash
i think this is concrete style