WordPress.org

Support

Support » Plugins and Hacks » Live Comment Preview » [Plugin: Live Comment Preview] error in rendering html ending in a digit

[Plugin: Live Comment Preview] error in rendering html ending in a digit

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

    http://abc.com/1

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

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

    does not get rendered as a link in the preview.

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Live Comment Preview] error in rendering html ending in a digit’ is closed to new replies.
Skip to toolbar