Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Stephan Lonntorp 195 posts 212 karma points
    Feb 17, 2010 @ 22:19
    Stephan Lonntorp
    0

      in content causes xslt-extension to fail.

    I get the following in my log:

    FMAUTOLINK:: Reference to undeclared entity 'nbsp'. Line 91, position 5.

    And a quick-fix is to add the following to the xslt macro:

    <xsl:value-of select="fmautolink:Link(umbraco.library:Replace($post/data [@alias = 'bodyText'], '&amp;nbsp;', ' '))" disable-output-escaping="yes"/>
  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Feb 18, 2010 @ 10:11
    Darren Ferguson
    0

    Hi Stephan,

    The input to auto link needs to be valid XML so an undecalred entity would break it.

    I'll look at ammending the code to declare the entity in a future version.

    Thanks!

  • Stephan Lonntorp 195 posts 212 karma points
    Feb 18, 2010 @ 10:18
    Stephan Lonntorp
    0

    I feed the contents of a richtext editor to the xslt extension, so it's up to TinyMCE and Tidy to make sure it's valid, sometimes entitites for special characters might show up as well, like &Aring;, &ouml; and so forth (me being Swedish and all...)

     

    One way could be to allow the user (me), to add entity declarations somewhere?

  • Darren Ferguson 1022 posts 3259 karma points MVP c-trib
    Feb 23, 2010 @ 17:51
    Darren Ferguson
    0

    Sure, agreed. This is a fun/free package so I'm not actively developing it. I'm happy to make the source available to anyone who has good suggestions for enhancements though.

    Just a thought - surely TinyMCE can be configured just to retain the Swedish characters and not convert them to entities?

     

Please Sign in or register to post replies

Write your reply to:

Draft