-
Notifications
You must be signed in to change notification settings - Fork 17
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
page: /tags/excerpt #211
Comments
Thank you for the report, but I'm not sure textile interferes here. Could you provide more details re the article body content? |
Hi, I've only seen this happen on a couple of older sites, so may be something in the config or hosting conditions or a plugin. I've tried the regex on the regex101 site and it removes the opening bracket from an opening p tag, so I'm guessing the regex trim happens before the transform / escape? |
Thank you. Have you also set This said, the example regex might be a bit loose, indeed. |
URLs
Explanation of immediate task
The trim regex given as an example to trim body for excerpt seems to trip up if textile is enable in the body field (prepending the truncated text with
p>
), no matter what the escape attributes. I have better luck with<txp:body escape="tags" trim="/^(<[^>]*>)*((?:\w+\W+){35})\w.*$/s" replace="$2…" />
, which excludes initial tags.Resources to support effort
Current to-dos
The text was updated successfully, but these errors were encountered: