wp-mail.php support for rfc1738 appendix (angle brackets around URLs in text)
-
I want to include plain text messages e-mailed to the blog which contain URLs formatted with angle brackets as per the Appendix of RFC 1738
https://www.ietf.org/rfc/rfc1738.txt
“APPENDIX: Recommendations for URLs in Context”
Currently, the brackets are faithfully retained in the post, which results in the URLs not being visible as they are perceived as invalid html tags.Could wp-mail.php handle them by either stripping out the brackets, or by converting them to entities (e.g. < and > ) – or could someone point me to instructions on how to set this up myself?
Examples:
for this URL: https://library.ust.hk/cgi/db/pqd-pubid.pl?37141
1 – <https://library.ust.hk/cgi/db/pqd-pubid.pl?37141>
2 – <URL:https://library.ust.hk/cgi/db/pqd-pubid.pl?37141>
Both probably stripped, so repeating with entities:
1 – <https://library.ust.hk/cgi/db/pqd-pubid.pl?37141>
2 – <URL:https://library.ust.hk/cgi/db/pqd-pubid.pl?37141>Thanks for any suggestions!
-Spode (Hong Kong)
- The topic ‘wp-mail.php support for rfc1738 appendix (angle brackets around URLs in text)’ is closed to new replies.