Skip to content

Conversation

dmsnell
Copy link
Owner

@dmsnell dmsnell commented Mar 8, 2023

No description provided.

@dmsnell dmsnell marked this pull request as draft March 8, 2023 02:48

if ( $is_escaped ) {
$link_html = preg_replace( '/[\'"]/', '\\\\$0', $link_html );
$all_parts = preg_split( '/\s/', "$rel $updated_rel", -1, PREG_SPLIT_NO_EMPTY );
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it the same logic as with class names? I wonder how many HTML attributes are like that – perhaps there's space for a more generic "add_flag()" or so.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

had the same thought 😉

@adamziel
Copy link

adamziel commented Mar 8, 2023

PRs like this one keep convincing me that developing Tag Processor was well worth it 💯

@dmsnell dmsnell force-pushed the html-api/refactor-wp-targeted-link-rel branch from 60973f7 to d78f35e Compare September 5, 2023 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants