• Resolved baxeico

    (@baxeico)


    Hi,
    when a comment has an HTML entity inside, for instance:

    “Pete & #039;s dragon” (space added between & and # otherwise the entity is converted to ‘)

    The plugin “wpDiscuz – User & Comment Mentioning” uncorrectly put a link on comment #039. I solved the issue on my site by modifying the regular expression in WpdiscuzUCM.php file, line 391. The regexp pattern should be:

    /[^&](\#\d+)[^\s\w]*/is

    I’m hoping that the fix can be made upstream. Thank you!

    • This topic was modified 6 years, 1 month ago by baxeico.
    • This topic was modified 6 years, 1 month ago by baxeico.
    • This topic was modified 6 years, 1 month ago by baxeico.
    • This topic was modified 6 years, 1 month ago by baxeico.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘wpDiscuz – User & Comment Mentioning: HTML entities detected as mentions’ is closed to new replies.