I have an img title attribute that contains the following set of characters: <h1>Image ABC</h1><p>There ist another paragraph</p>
(the html tags are neccessary to achieve a certain formatting as the title also serves as the caption of the image, this is a restriction of the CMS)
How can I remove certain characters in the img title attribute using jQuery (especially the html tags)? For example I want to remove everything in the title attribute except Image ABC
Thanks a lot for your ideas!
", ""); but doesn't work. But the example from @mplungjan worked
– fono Dec 22 '14 at 13:29