plaintext

Converting HTML to plain text in PHP for e-mail

非 Y 不嫁゛ 提交于 2019-11-26 06:58:21
I use TinyMCE to allow minimal formatting of text within my site. From the HTML that's produced, I'd like to convert it to plain text for e-mail. I've been using a class called html2text , but it's really lacking in UTF-8 support, among other things. I do, however, like that it maps certain HTML tags to plain text formatting — like putting underscores around text that previously had <i> tags in the HTML. Does anyone use a similar approach to converting HTML to plain text in PHP? And if so: Do you recommend any third-party classes that I can use? Or how do you best tackle this issue? jevon Use

How to send password securely over HTTP?

拜拜、爱过 提交于 2019-11-26 06:56:46
问题 If on a login screen user submits a form with his username and password, the password is sent in plain text (even with POST, correct me if I am wrong). So the question is what is the right way to protect the user and his password against the third party who might be eavesdropping on the communication data? I am aware that HTTPS is asolution to the problem, but is there any way to ensure at least some level of security using standard HTTP protocol (POST request)? (perhaps using javascript in

Converting HTML to plain text in PHP for e-mail

社会主义新天地 提交于 2019-11-26 02:07:11
问题 I use TinyMCE to allow minimal formatting of text within my site. From the HTML that\'s produced, I\'d like to convert it to plain text for e-mail. I\'ve been using a class called html2text, but it\'s really lacking in UTF-8 support, among other things. I do, however, like that it maps certain HTML tags to plain text formatting — like putting underscores around text that previously had <i> tags in the HTML. Does anyone use a similar approach to converting HTML to plain text in PHP? And if so: