Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14067878
D14710.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D14710.diff
View Options
diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -464,6 +464,8 @@
'phutil_split_lines' => 'utils/utils.php',
'phutil_tag' => 'markup/render.php',
'phutil_tag_div' => 'markup/render.php',
+ 'phutil_tag_em' => 'markup/render.php',
+ 'phutil_tag_strong' => 'markup/render.php',
'phutil_unescape_uri_path_component' => 'markup/render.php',
'phutil_units' => 'utils/utils.php',
'phutil_utf8_console_strlen' => 'utils/utf8.php',
diff --git a/src/markup/render.php b/src/markup/render.php
--- a/src/markup/render.php
+++ b/src/markup/render.php
@@ -126,6 +126,14 @@
return phutil_tag('div', array('class' => $class), $content);
}
+function phutil_tag_em($content) {
+ return phutil_tag('em', array(), $content);
+}
+
+function phutil_tag_strong($content) {
+ return phutil_tag('strong', array(), $content);
+}
+
function phutil_escape_html($string) {
if ($string instanceof PhutilSafeHTML) {
return $string;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 5:49 PM (12 m, 20 s)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6746675
Default Alt Text
D14710.diff (1 KB)
Attached To
Mode
D14710: Add em and strong shortcuts to phutil_tag
Attached
Detach File
Event Timeline
Log In to Comment