@fourlegs ah, but will it capture
<body data-id="93" data-encodedsecret="dGhpcyBpcyBhIHN1cGVyIHNlY3JldCBzdHJpbmc" data-tag="<p>paragraph</p>">
@g hmm you are right my regex would balk at your html string inside data-tag. i need to fix it by also matching attr=value pairs inside any tags...
@fourlegs perfect! 😃
I've had this exact problem for Nazdeeq.com, I needed to inject a header and scripts right after the opening body tag in a reverse proxy. Eventually I changed the whole stack but attributes gave me a lot of trouble initially.
@g yeah.. it's really hard to get all use cases covered so the better route, if possible, is to urlencode any attribute values.
This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!