Copied to clipboard

Flag this post as spam?

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


  • Gudmund Berggren 7 posts 27 karma points
    Aug 09, 2011 @ 22:56
    Gudmund Berggren
    0

    Removing < br/> from the mail generated by xslt transformed email template

    Hi,

    I am really new to xslt and Contour.., anyhow ;-)

    I have built a form and if works really nice.

    The generated/received mail contains the characters "<br />" instead of a linebreak. Put it in another way, 5 lines of text that was inputted in a textarea are shown as one long line of text in the email with <br /> in the text where the normal newlines would have been. The email itself is HTML formatted with a nice border.

    Is it possible to have newlines insted of <BR /> in the email ?

    Cheers

    Gudmund

  • Profiterole 232 posts 264 karma points
    Oct 06, 2011 @ 15:31
    Profiterole
    0

    Hi, have you resolved your problem? I have the same issue.

    <xsl:value-of select="umbraco.library:ReplaceLineBreaks($records/fields/message//value)"/>

    gives me <br/>

    And, if I don't use the umbraco.library, there's no linebreak either...

     

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Oct 06, 2011 @ 15:38
    Tom Fulton
    0

    You might need to add disable-output-escaping="yes", ie:

    <xsl:value-of select="umbraco.library:ReplaceLineBreaks($records/fields/message//value)" disable-output-escaping="yes" />
  • Profiterole 232 posts 264 karma points
    Oct 06, 2011 @ 15:39
    Profiterole
    0

    Oh my god... so obvious... Thanks Tom

  • Gudmund Berggren 7 posts 27 karma points
    Oct 07, 2011 @ 20:36
    Gudmund Berggren
    0

    Hi,

    Which file should I modify ;-)

    /Gudmund

     

Please Sign in or register to post replies

Write your reply to:

Draft