tidyNode::isJste

(PHP 5, PHP 7, PHP 8)

tidyNode::isJsteChecks if this node is JSTE

Description

publictidyNode::isJste(): bool

Tells if the node is JSTE.

Parameters

This function has no parameters.

Return Values

Returns true if the node is JSTE, false otherwise.

Examples

Example #1 Extract JSTE code from a mixed HTML document

<?php

$html
= <<< HTML
<html><head>
<?php echo '<title>title</title>'; ?>
<#

alert('Hello World');
#>
</head>
<body>

<?php

The above example will output:

# jste node #1 <# alert('Hello World'); #>
To Top