Convert setCaption() to safe HTML

Test Plan: /settings/panel/display/

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T2432

Differential Revision: https://secure.phabricator.com/D4824
This commit is contained in:
vrana
2013-02-05 13:23:05 -08:00
parent bcf9b9d4a7
commit be4662e667
15 changed files with 52 additions and 45 deletions

View File

@@ -83,7 +83,8 @@ final class PhabricatorRepositoryArcanistProjectEditController
id(new AphrontFormTextControl())
->setLabel('Indexed Languages')
->setName('symbolIndexLanguages')
->setCaption('Separate with commas, for example: <tt>php, py</tt>')
->setCaption(
hsprintf('Separate with commas, for example: <tt>php, py</tt>'))
->setValue($langs))
->appendChild(
id(new AphrontFormTokenizerControl())