Changeset 3474812
- Timestamp:
- 03/04/2026 06:05:22 PM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin-menu-editor/trunk/customizables/HtmlHelper.php
r2848682 r3474812 12 12 * @return string 13 13 */ 14 public static function tag($tagName, $attributes = array(), $content = null) {14 public static function tag($tagName, $attributes = array(), $content = null): string { 15 15 $html = '<' . $tagName; 16 16 $charset = self::getCharset(); … … 79 79 return $charset; 80 80 } 81 82 /** 83 * Output a HTML tag with the specified name, attributes and content. 84 * 85 * @param string $tagName 86 * @param array<string,mixed> $attributes 87 * @param string|null $content 88 */ 89 public static function outputTag(string $tagName, array $attributes = array(), ?string $content = null) { 90 //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- The tag() method handles escaping. 91 echo self::tag($tagName, $attributes, $content); 92 } 81 93 }
Note: See TracChangeset
for help on using the changeset viewer.