Tip: Use PHP to write the title that should be noted in the message book

Source: Internet
Author: User
1. to prevent table deformation, add styleTABLE-LAYOUT: fixed and WORD-BREAK in the corresponding table label: break-all 2. Block html code. when submitting a message, replace & lt; and & gt; in the message content. 3. change the hard return key to save

1. prevent table deformation

In the corresponding table label

Style = 'Table-LAYOUT: fixed; WORD-BREAK: break-all'

II. shielding html code

When you submit a message, replace '<' and '>' in the message content with & lt; and & gt.

3. press enter

That is, the style used by the signatory to write the message is retained.
In ASP, change chr (13)

Change ''in PHP


Note: If you want to jointly block html code, you must first replace the second point and then change the third point.

You are welcome to provide other titles that should be noted out in the message book!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.