Commit 2111629
committed
fix(hooks): render inline {@link URL desc} PHPDoc tags as links
The upstream parser autolinks the URL inside an inline {@link} tag but
leaves the surrounding tag as literal text; sanitizeContent then escapes
the braces, so pages rendered e.g. '\{@link <a href=URL>URL</a> Read more\}'
verbatim (visible on the gravityview_page_links_args filter page).
cleanupHookContent now rewrites the escaped inline tag into a single link,
using the tag's description as anchor text (falling back to the URL when
none is given). Fixes all affected hook pages.1 parent 34d8523 commit 2111629
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
403 | 418 | | |
404 | 419 | | |
405 | 420 | | |
| |||
0 commit comments