Live Comment Preview
error in rendering html ending in a digit (3 posts)

  1. gavinny1
    Posted 4 years ago #

    When trying to render a html link ending in a digit:


    for instance, the preview takes the end quote and renders it as a html double quote, breaking the link. A quick fix is to comment out line 101:

    s = s.replace(/(\d+)"/g, '$1″');

    I'd appreciate any feedback on whether this is appropriate, or if any other fix is possible. Thanks.

  2. gavinny1
    Posted 4 years ago #

    Follow on: I've just updated to the latest version (2.01b), and although the changes make this more robust, the preview does not recognise URLs ending in a digit still.

    <a href="http://abc.com/1">fred</a>

    does not get rendered as a link in the preview.

  3. JohnP
    Posted 4 years ago #

    I have users reporting the same problem; using WP 3.1.1 and LCP 2.0b1

    If something redundant such as: " &ref=rss " is added after the final digit, the preview works properly again.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Live Comment Preview
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic