Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
In our company we just noticed some strange behavior when using the RemoveFirstParagraphTag XSLT extension.
We have a rich text field, from which we want to strip out the first paragraph but otherwise render the rest of the HTML formatting.
The raw content from the field looks like this <p><span>some text with a <a href="http://www.example.com">link</a>goes here</span></p>So we remove the paragraph using the extension, but then the a tag is getting messed up. In the output it's written like
<ahref="http: www.example.com="">link</ahref="http:>...Is there a workaround for this or should it be considered a but, that should be reported on codeplex?For now we'll just use the replace extension to get rid of the paragraph.
/Jan
whoops, minor typo in here "Is there a workaround for this or should it be considered a but, that should be reported on codeplex?"...would have been funny if there was an extra "t" in there...:) - off course it should read "bug" :-)
Definitely a bug. Please report it.
cheers,doug.
Ok I'll file it on codeplex later today
Just found out that there already is reported bugs with this datatype here: http://umbraco.codeplex.com/WorkItem/View.aspx?WorkItemId=23386 - just added a comment about the issue described in the first post
Got this problem too, seems like it never got fixed, anyone got a work around?
Rich
Found a work around here it case anyone needs it
http://our.umbraco.org/forum/developers/xslt/6397-Temporary-workaround-for-RemoveFirstParagraphTag-bug
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Behavior of umbraco.library:RemoveFirstParagraphTag
Hi
In our company we just noticed some strange behavior when using the RemoveFirstParagraphTag XSLT extension.
We have a rich text field, from which we want to strip out the first paragraph but otherwise render the rest of the HTML formatting.
The raw content from the field looks like this <p><span>some text with a <a href="http://www.example.com">link</a>goes here</span></p>
So we remove the paragraph using the extension, but then the a tag is getting messed up. In the output it's written like
<ahref="http: www.example.com="">link</ahref="http:>...
Is there a workaround for this or should it be considered a but, that should be reported on codeplex?
For now we'll just use the replace extension to get rid of the paragraph.
/Jan
whoops, minor typo in here "Is there a workaround for this or should it be considered a but, that should be reported on codeplex?"...would have been funny if there was an extra "t" in there...:) - off course it should read "bug" :-)
Definitely a bug. Please report it.
cheers,
doug.
Ok I'll file it on codeplex later today
/Jan
Just found out that there already is reported bugs with this datatype here: http://umbraco.codeplex.com/WorkItem/View.aspx?WorkItemId=23386 - just added a comment about the issue described in the first post
Got this problem too, seems like it never got fixed, anyone got a work around?
Rich
Found a work around here it case anyone needs it
http://our.umbraco.org/forum/developers/xslt/6397-Temporary-workaround-for-RemoveFirstParagraphTag-bug
is working on a reply...