首页 WordPress函数大全 get_tag_regex()

get_tag_regex()

2020-05-01 / 3618阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_tag_regex( string $tag )

Return RegEx body to liberally match an opening HTML tag.

描述

Matches an opening HTML tag that:

  1. Is self-closing or
  2. Has no body but has a closing tag of the same name or
  3. Contains a body and a closing tag of the same name

Note: this RegEx does not balance inner tags and does not attempt to produce valid HTML

参数

$tag

(string)
(Required)
An HTML tag name. Example: 'video'.

返回

(string) Tag RegEx.

大家谈论
    我的见解