c# - How to remove the Zero Space Character (​) that ASP Repeaters generate? -


i have basic asp repeater generates ul , child lis. seems each li preceded magical 0 space character (​). messes design adding space between each list item.

the code on dev site can't give link. here basic markup

<asp:repeater id="rptrpagemeta" runat="server"> <headertemplate>     <ul> </headertemplate> <itemtemplate>​     <li>     </li> </itemtemplate> <footertemplate>     </ul>     <div class="clear"></div> </footertemplate> </asp:repeater> 

the repeater has list of data items gets bound in presenter. in example irrelevant since nothing each item gets rendered. generates:

<ul> &#8203;     <li>     </li>&#8203;     <li>     </li>&#8203;     <li>     </li>&#8203;     <li>     </li>&#8203;     <li>     </li>&#8203;     <li>     </li> </ul> 

i remove character rather css hack hide it. have tried remove white space file making code on 1 line. removed white spaces there wont rid of 0 space character. edited file in notepad++ characters displayed , character wasn't there.

what ways can remove character?

edit: did create fresh project , not able reproduce issue. thing can assume is caused sitefinity. code used in widget template inside of sitefinity 5 cms.

current hack: way getting around using following js on specific list:

if ($('.my-list').length > 0) {     $('.my-list').each(function() {         $(this).html($(this).children('li'));     }); } 

in itemtemplate, have tags beside each other.

<itemtemplate​><li></li><itemtemplate>


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -