Opened 12 years ago
Closed 11 years ago
#29515 closed defect (bug) (duplicate)
Escape/encode some HTML tags used in core docblocks
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | General | Keywords: | has-patch |
| Focuses: | docs | Cc: |
Description
In some function references, such as get_media_embedded_in_content we reference specific HTML tags like <video>, <audio>, <embed>, <iframe>, or others.
And since markdown backslash escaping doesn't apply to greater- and less-than characters, we may need to encode them directly in the docblocks so they can be properly parsed for the Code Reference.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
The other obvious choice may be to run
esc_html()on the parser side before it goes through markdown parsing. We'll have to figure out what works best across the board.