John,
I thought that you had said that you had a rule for fixing the &'s in URLs making them xhtml compliant.
I search the rules and found one that addressed ampersands, but not in that context.
Was I dreaming, or do you have such a rule?
/DaveS
I don't remember, but try this: Search For:
<a[^>]+href=['"]*[^>]+&(?!amp;)[^'">]+>
Replace With:
&
oops, I had my entities mixed up, the previous post has been corrected.
I tried it and PB can't save it, but shows no errors. Changes to other rules work. Something in this saving this rule is causing a "Thread Aborted" exception.
The & amp amp stuff allowed me to save the rule, but didn't make the rule work. the regex is matching the & in the URL from UDT where I am seeing the issue. replacing with xxx didn't do amything.
any more suggestions?
http://www.agingsafely.com/help/test_page/testwithpb.aspx is and example. I added a UDT module with titles and links to documents on my site. The page was W3C compliante originally. The URL causes several errors with the &'s
The PB rule has the "& amp;amp;" with the space removed that you suggested.
Ok, here is another try. SearchFor:
(<a [^>]+?&)(?!amp;)
ReplaceWith:
$1amp;
No cigar yet! I did create a URL with the 5-character amp in it and confirmed that it does show up that way in the URL at the bottom of Firefox. The above strings still leave the 1-car amp.
Maybe this is why DNN never did the URLs with the 5-char amps in the first place
I don't know how that last one could miss.
Make sure you have enabled the rule to repeat multiple times, otherwise it will only get the first one it finds.