Merge renderSingleView() and renderHTMLView()

Summary: They are same because render() returns safe HTML and raw strings are automatically escaped.

Test Plan: None.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4909
This commit is contained in:
vrana
2013-02-11 14:43:25 -08:00
parent c9ab1fe505
commit ae4e5807d6
27 changed files with 41 additions and 57 deletions

View File

@@ -125,12 +125,12 @@ return `phutil_tag()` or `javelin_tag()`:
return phutil_tag('div', ...);
@{class:AphrontView} subclasses can use `renderHTMLChildren()` and
`renderHTMLView()` to build @{class@libphutil:PhutilSafeHTML} objects from
`renderSingleView()` to build @{class@libphutil:PhutilSafeHTML} objects from
children or arbitrary lists of components.
@{class:AphrontView} subclasses should avoid `renderChildren()` and
`renderSingleView()` and transition callers to the `HTML` varieties. These older
methods do not return @{class@libphutil:PhutilSafeHTML} objects.
@{class:AphrontView} subclasses should avoid `renderChildren()` and transition
callers to `renderHTMLChildren()`. This older method does not return
@{class@libphutil:PhutilSafeHTML} objects.
= Internationalization: pht() =