class link_helper
Methods
void |
cleanup_tag(Tag $tag, Parser $parser)
Clean up and invalidate a LINK_TEXT tag if applicable |
|
void |
generate_link_text_tag(Tag $tag, Parser $parser)
Create a LINK_TEXT tag inside of a link |
|
void |
truncate_local_url(Tag $tag, string $board_url)
Remove the board's root URL from a the start of a string |
|
void |
truncate_text(Tag $tag)
Truncate the replacement text set in a LINK_TEXT tag |
Details
at line 28
public void
cleanup_tag(Tag $tag, Parser $parser)
Clean up and invalidate a LINK_TEXT tag if applicable
Will invalidate the tag if its replacement text is the same as the original text and would have no visible effect
at line 47
public void
generate_link_text_tag(Tag $tag, Parser $parser)
Create a LINK_TEXT tag inside of a link
Meant to only apply to linkified URLs and [url] BBCodes without a parameter
at line 91
public void
truncate_local_url(Tag $tag, string $board_url)
Remove the board's root URL from a the start of a string
at line 106
public void
truncate_text(Tag $tag)
Truncate the replacement text set in a LINK_TEXT tag