Copied to clipboard

Flag this post as spam?

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


  • vaibhav 119 posts 139 karma points
    Jul 21, 2011 @ 10:17
    vaibhav
    0

    problem with truncate string

    Hi,

    I want to truncate the string ... & string should show ">>" at the end of string......

    if i use this .....<xsl:value-of select="umbraco.library:TruncateString($currentPage/ancestor-or-self::*[@isDoc]/c1block1_Content, 120,' >>')" disable-output-escaping="yes"/>


    then it only shows ">>" if string characters are more than 120 , which i dont want....

    &

    if i use <xsl:value-of select="umbraco.library:TruncateString($currentPage/ancestor-or-self::*[@isDoc]/c1block1_Content, 120,' ')" disable-output-escaping="yes"/>  >>


    thenit shows ">>" in next line...

    if i see view source then it shows something like this...it automatically creates <p></p> tags....

    <p>string</p> >>

    how to solve this....

Please Sign in or register to post replies

Write your reply to:

Draft