160
rated 0 times
[
161]
[
1]
/ answers: 1 / hits: 15489
/ 12 Years ago, tue, august 21, 2012, 12:00:00
I have different sentences which all have double quotes in them, like:
<h3 class=myClass>Sentence one ends like this</h3>
<h3 class=myClass>Sentence twoends like that</h3>
<h3 class=myClass>Sentence three another ending</h3>
All on a page. Basically all values are differents, and I'm trying to have a line break just before the double quote so it would be like
<h3 class=myClass>Sentence one <br/>ends like this</h3>
<h3 class=myClass>Sentence two <br/>ends like that</h3>
<h3 class=myClass>Sentence three <br/>another ending</h3>
I'm kind of confused on which jQuery function should be used to be honest, between split, text ? Any help would be appreciated , I need to understand how to do this... Many thanks!
More From » jquery