-
Notifications
You must be signed in to change notification settings - Fork 32
Fix entry's short description when it has html in it #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Same here, something to test with? |
Look at the first few methods at http://stage.api.jquery.com/category/ajax/ and see how they're truncated. Also, the short descriptions on the individual entry pages strip out the html, but leave the text intact: http://stage.api.jquery.com/ajaxComplete/ |
I've commited the proposed fix, but that doesn't address the issue on the category page. For that we need to change the code that generates the excerpt:
Can't really tell yet what the escape-string template does, or why it rips of the markup. |
@scottgonzalez can you take over here? |
This fix ensures that the full text is inserted into the excerpt, but it does not copy the tags, so the result is a plaintext description, instead of an HTML description. Copying the tags is a complex process that seems fairly insane. |
Needs to be
<xsl:apply-templates select="desc"/>
instead of<xsl:value-of select="desc"/>
. Thanks, @scottgonzalez !The text was updated successfully, but these errors were encountered: