HomePhabricator

Adding quoting and escaping functions to strings, breaking up strToHTML

Authored by cesar on May 1 2020, 2:10 PM.

Description

Adding quoting and escaping functions to strings, breaking up strToHTML

Summary: The new _q(), _u() and _e() functions allow manipulating the output buffer with more granularity

Test Plan:
Unit tests should work fine
_q() should replace quotes with HTML entities
_e() should replace everything else
_u() should provide url replacing

Reviewers: sebastian

Reviewed By: sebastian

Differential Revision: https://phabricator.magic3w.com/D283

Details

Committed
cesarMay 4 2020, 9:48 AM
Pushed
cesarMay 4 2020, 9:48 AM
Reviewer
sebastian
Differential Revision
Restricted Differential Revision
Parents
rSF6f042a648572: Added the utilities director
Branches
Unknown
Tags
Unknown

Event Timeline