search - JQuery searching a text containing multiple spans -


i need in searching text has multiple span tags.

sample text below:

"this test value"

and html equivalent is:

"this <span style="font-style: italic;"><span style="font-weight: bold;"><span><span>t</span></span><span></span><span></span><span><span>e</span></span><span style="font-style: italic;"><span style="font-weight: bold;"><span><span>st</span></span></span></span> value."

i need search , highlight word "test" while still displaying original formatted content, problem span tags causing conflicts in comparison.

i tried .text() compare , able results since ignores html tags, unable retain text format.

i've managed find solution problem using rangy-textrange module.

it able handle searches within contents having style conflicts.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -