Hi
I am in a situation where I need to match two strings containing HTML.I I can not use exact comparison as the two stings may differ sometimes due to white spaces or something like etc.
I tried using replace( /[\r\n\t]/g, '' ) this solved my problem with the white spaces.But I am not sure , how can I compare string to succes like
<span class='foo'> this is
a
test<span>
with
<span class='foo'> this is
a
test<span>
or with
> span class="foo" < this is
a
test >span<
any pointer in this regard will be helpful.
Thanks in advance