As a simple example, I want to apply the class fancy"to all occurrences of the character" &"in the document.
CSS:
.fancy { font-style: italic; }
So the text is as follows:
Ben & Jerry's
will be processed by jquery as follows:
Ben <span class="fancy">&</span> Jerry's
Is there a function to target specific words / phrases / letters like this?
source
share