I have some html string that is coming from telerik radeditor, it may contain images tags with width and height. I want to remove those width and height properties.
How can I do this in code using regex or something else in asp.net?
I have some html string that is coming from telerik radeditor, it may contain
Share
There are a lot of mentions regarding not to use regex when parsing HTML, so you could use e.g. Html Agility Pack for this:
this will remove
widthandheightattribute from images in your html.