Title: page: /tags/excerpt · Issue #211 · textpattern/textpattern.github.io · GitHub
Open Graph Title: page: /tags/excerpt · Issue #211 · textpattern/textpattern.github.io
X Title: page: /tags/excerpt · Issue #211 · textpattern/textpattern.github.io
Description: URLs Back: {repo URL here (.md file)} Front: {website URL here} 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 t...
Open Graph Description: URLs Back: {repo URL here (.md file)} Front: {website URL here} 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 th...
X Description: URLs Back: {repo URL here (.md file)} Front: {website URL here} 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 th...
Opengraph URL: https://github.com/textpattern/textpattern.github.io/issues/211
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"page: /tags/excerpt","articleBody":"#### URLs\r\n\r\n- Back: [{repo URL here (.md file)}](https://github.com/textpattern/textpattern.github.io/blob/master/tags/excerpt.md)\r\n- Front: [{website URL here}](https://docs.textpattern.com/tags/excerpt#example-3-automatically-extract-the-excerpt-from-body-text)\r\n\r\n#### Explanation of immediate task\r\n\r\nThe 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\u003e`), no matter what the escape attributes. I have better luck with `\u003ctxp:body escape=\"tags\" trim=\"/^(\u003c[^\u003e]*\u003e)*((?:\\w+\\W+){35})\\w.*$/s\" replace=\"$2\u0026hellip;\" /\u003e`, which excludes initial tags.\r\n\r\n#### Resources to support effort\r\n\r\n* https://regex101.com/r/XBYWrs/1\r\n\r\n#### Current to-dos\r\n\r\n* Maybe update example with note for textile users\r\n","author":{"url":"https://github.com/butterp1","@type":"Person","name":"butterp1"},"datePublished":"2024-01-29T01:59:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/211/textpattern.github.io/issues/211"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2c8737fa-4c85-c970-f1f2-deafa6e765e5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF24:22A3B:505B1C:712F06:6970A9BF |
| html-safe-nonce | d3dcd44f4c50b14b05c4d959502abbd56915a46ddfb26eaf9b41dd8268011c96 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjI0OjIyQTNCOjUwNUIxQzo3MTJGMDY6Njk3MEE5QkYiLCJ2aXNpdG9yX2lkIjoiMTYzODg2MDQ0OTkxMTk3NDMzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1493adf68649d758afaf3e73522a48e461bdb70ab063a505da6c30125ad153dc |
| hovercard-subject-tag | issue:2104492289 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/textpattern/textpattern.github.io/211/issue_layout |
| twitter:image | https://opengraph.githubassets.com/532921f5c6a6366222e5267d95b3fb76ce1529d6d1e162bc66dae9756a5d2af5/textpattern/textpattern.github.io/issues/211 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/532921f5c6a6366222e5267d95b3fb76ce1529d6d1e162bc66dae9756a5d2af5/textpattern/textpattern.github.io/issues/211 |
| og:image:alt | URLs Back: {repo URL here (.md file)} Front: {website URL here} 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 th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | butterp1 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5246860f280a060af866c1c633f74a6720ad2dd5d576534e4c5e462496b693ae |
| turbo-cache-control | no-preview |
| go-import | github.com/textpattern/textpattern.github.io git https://github.com/textpattern/textpattern.github.io.git |
| octolytics-dimension-user_id | 21210 |
| octolytics-dimension-user_login | textpattern |
| octolytics-dimension-repository_id | 16011615 |
| octolytics-dimension-repository_nwo | textpattern/textpattern.github.io |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16011615 |
| octolytics-dimension-repository_network_root_nwo | textpattern/textpattern.github.io |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d29ab0ba8deb7bbecf06b664759d4e847623783 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width