An external link, like [http://example.com]
.
More...
|
static | escapeLine (array $line) |
| This adds necessary escapes to a line of chunks.
|
|
static | cast ( $o, Node $node) |
| Ensure that the argument o , which is perhaps a string, is a instance of ConstrainedText .
|
|
static | fromSelSer (string $text, Element $node, DataParsoid $dataParsoid, Env $env, array $opts=[]) |
| SelSer support: when we come across an unmodified node in during selective serialization, we know we can use the original wikitext for that node unmodified.
|
|
| $text |
|
| $node |
|
| $prefix |
|
| $suffix |
|
| $selser |
|
| $noSep |
|
An external link, like [http://example.com]
.
◆ __construct()
Wikimedia\Parsoid\Html2Wt\ConstrainedText\ExtLinkText::__construct |
( |
string | $text, |
|
|
Element | $node, |
|
|
SiteConfig | $siteConfig, |
|
|
string | $type ) |
- Parameters
-
string | $text | |
Element | $node | |
SiteConfig | $siteConfig | |
string | $type | The type of the link, as described by the rel attribute. |
◆ fromSelSerImpl()
static Wikimedia\Parsoid\Html2Wt\ConstrainedText\ExtLinkText::fromSelSerImpl |
( |
string | $text, |
|
|
Element | $node, |
|
|
DataParsoid | $dataParsoid, |
|
|
Env | $env, |
|
|
array | $opts ) |
|
staticprotected |
The documentation for this class was generated from the following file:
- src/Html2Wt/ConstrainedText/ExtLinkText.php