javascript - Razor: Expand image as img tag from the string used in p tag -


i have view uses list model passed populate data. model view @model ilist<notedata>. class notedata contains 2 string variables anchor , data. values stored in data field can of following form


detailed flipflop diagram <img src="http://cpuville.com/images/register_2.jpg"> use.


i don't want directly display value string instead show image expanded img tag not able working. thank in advance suggestions

for can use html.raw() method. method not encode string instead output pure html. like

@html.raw(notedata.data) 

should display image tags. wary though output , html in string pure html, site may become vulnerable script injections if you're using method.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -