Online Documentation Server
 ПОИСК
ods.com.ua Web
 КАТЕГОРИИ
Home
Programming
Net technology
Unixes
Security
RFC, HOWTO
Web technology
Data bases
Other docs

 


 ПОДПИСКА

 О КОПИРАЙТАХ
Вся предоставленная на этом сервере информация собрана нами из разных источников. Если Вам кажется, что публикация каких-то документов нарушает чьи-либо авторские права, сообщите нам об этом.




htmlspecialchars

htmlspecialchars

(PHP3 , PHP4 )

htmlspecialchars --  Convert special characters to HTML entities

Description

string htmlspecialchars (string string)

Certain characters have special significance in HTML, and should be represented by HTML entities if they are to preserve their meanings. This function returns a string with these conversions made.

This function is useful in preventing user-supplied text from containing HTML markup, such as in a message board or guest book application.

At present, the translations that are done are:

  • '&' (ampersand) becomes '&'

  • '"' (double quote) becomes '"'

  • '<' (less than) becomes '&lt;'

  • '>' (greater than) becomes '&gt;'

Note that this functions does not translate anything beyond what is listed above. For full entity translation, see htmlentities().

See also htmlentities() and nl2br().



With any suggestions or questions please feel free to contact us