הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   [PHP] איזו פונקציה עדיפה? htmlentities() או htmlspecialchars() ? (https://hosts.co.il/forums/showthread.php?t=55614)

miniature 25-10-07 17:39

[PHP] איזו פונקציה עדיפה? htmlentities() או htmlspecialchars() ?
 
כותרת.

DorWD 25-10-07 17:43

htmlentities זה בד"כ למניעת תו(וים) מסויימ(ים), Htmlspecialchars מתקיים על כל התווים

miniature 25-10-07 17:47

ציטוט:

נכתב במקור על ידי DorWD (פרסם 571309)
htmlentities זה בד"כ למניעת תו(וים) מסויימ(ים), Htmlspecialchars מתקיים על כל התווים

לא הפוך? |:

DorWD 25-10-07 17:49

This function is identical to htmlspecialchars() in all ways, except with htmlentities(), all characters which have HTML character entity equivalents are translated into these entities.

2 הפונקציות זהות =]

miniature 25-10-07 18:22

ציטוט:

except with htmlentities(), all characters which have HTML character entity equivalents are translated into these entities
מה עם זה? :)


כל הזמנים הם GMT +2. הזמן כעת הוא 12:33.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ