Support Forum

Adding hyperlinks to Profanity Filter replacement words

18 Answers

New Answer

JI jim
jim
Member

Lookin’ good! FYI…

For a keyword with an existing link tag, the words gets replaced but the original hyperlink tag is retained. I would think is preferred to what I discovered in the Alpha version before updating … the words and link were both replaced via PF and AL plugins, and the original link tag remained in the code, followed immediately by the close link tag before the new linked word.

Words in the PF list added to the Autolink admin pane do still get replaced upon page refresh, but I don’t believe any energy needs to be spent fixing that since 1. it would be a rare case for someone to want to link a misspelled word they are replacing via PF anyway, and 2. with PF firing first now, doing so is unnecessary. I just thought it was interesting it happens on the AL admin pane but not on PF pane.

In other words, great job! And fast too…

MP Mr Papa
Mr Papa
Member

I have made a couple more changes and probably will release it next weekend after more testing and thinking about your comments… 

I did make it a case sensitive search and replace otherwise it will force the link text to be lowercase…

yeah, I ignored the words in a link… changing those is problematic… might be better to even ignore text between the a tags, but now the regex is getting really complex! ;)

 

 

JI jim
jim
Member

Less complexity is a good thing! Another job well done, thanks again for pushing this out.

 

MP Mr Papa
Mr Papa
Member

no problem. had similar thing on my list – though different use case – for some time… happy to help!