You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am aware that you use hn3 package for this. I asked there and got the answer that there is not option on the side of hn3 to modify that behavior. messense/nh3#71
The broader picture here is that I need verify a mailman3 list on Mastodon. To make this happen the list landing page in mailman3 need to contain a rel=me link like you see above.
Approach
I can imagine a regex based approach/workaround and would provide a PR if you accept the concept of the solution. What do you think?
The approach described in short steps:
Before calling hn3.clean() record (via regex) all a-tags (and if you want link-tags contain in head-tags) containing a "rel" attribute.
Call hn3.clean()
Iterate over the recorded cases
Use their hn3.clean() version to find them in the sanitized HTML.
Add the old rel-values to the rel-attribute.
What do you think?
The text was updated successfully, but these errors were encountered:
Hello,
let me start with an example.
This input is transformed into this, with an overwritten rel-attribute:
But what I want is
readme_renderer/readme_renderer/clean.py
Lines 79 to 85 in 71f7cba
Background
I am aware that you use
hn3
package for this. I asked there and got the answer that there is not option on the side of hn3 to modify that behavior. messense/nh3#71The broader picture here is that I need verify a mailman3 list on Mastodon. To make this happen the list landing page in mailman3 need to contain a rel=me link like you see above.
Approach
I can imagine a regex based approach/workaround and would provide a PR if you accept the concept of the solution. What do you think?
The approach described in short steps:
What do you think?
The text was updated successfully, but these errors were encountered: