Skip to content

Commit 0664be2

Browse files
committed
Update script and example for unescaping HTML.
1 parent 2960428 commit 0664be2

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

index.html

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8756,15 +8756,13 @@ <h3>Graph Containers</h3>
87568756
<head>
87578757
<base href="http://dbpedia.org/resource/"/>****
87588758
<script type="application/ld+json">
8759-
< ! - -
87608759
{
87618760
"@context": "https://json-ld.org/contexts/person.jsonld",
87628761
"@id": ****"John_Lennon"****,
87638762
"name": "John Lennon",
87648763
"born": "1940-10-09",
87658764
"spouse": ****"Cynthia_Lennon"****
87668765
}
8767-
- - >
87688766
</script>
87698767
****</head>
87708768
</html>****
@@ -8849,7 +8847,6 @@ <h3>Graph Containers</h3>
88498847
<div class="selectors">
88508848
<button class="selected" data-selects="original">Original</button>
88518849
<button data-selects="expanded">Expanded</button>
8852-
<button data-selects="statements">Statements</button>
88538850
<button data-selects="turtle">Turtle</button>
88548851
</div>
88558852
<pre class="original selected" data-transform="updateExample"
@@ -8860,43 +8857,36 @@ <h3>Graph Containers</h3>
88608857
"@context": "http://schema.org/",
88618858
"@type": "WebPageElement",
88628859
"name": "Encoding Issues",
8863-
"description": "Issues list such as unescaped &lt;/script&gt; or --&gt;"
8860+
"description": "Issues list such as unescaped &lt;/script&gt; or - - &gt;"
88648861
}
88658862
</script>
88668863
-->
88678864
</pre>
88688865
<pre class="expanded"
88698866
data-transform="updateExample"
8870-
data-result-for="Embedding JSON-LD in HTML with comments-original">
8867+
data-result-for="Embedding JSON-LD containing HTML in HTML-original">
88718868
<!--
88728869
[{
8873-
"@type": "http://schema.org/WebPageElement",
8870+
"@type": ["http://schema.org/WebPageElement"],
88748871
"http://schema.org/name": [{"@value": "Encoding Issues"}],
88758872
"http://schema.org/description": [
8876-
{"@value": "Issues list such as unescaped &lt;/script&gt; or --&gt;"}
8873+
{"@value": "Issues list such as unescaped </script> or - - >"}
88778874
]
88788875
}]
88798876
-->
88808877
</pre>
8881-
<table class="statements"
8882-
data-result-for="Embedding JSON-LD in HTML with comments-expanded"
8883-
data-to-rdf>
8884-
<thead><tr><th>Subject</th><th>Property</th><th>Value</th><th>Value Type</th></tr></thead>
8885-
<tbody>
8886-
<tr><td>_:b0</td><td>schema:name</td><td>Encoding Issues</td><td>&nbsp;</td></tr>
8887-
<tr><td>_:b0</td><td>schema:description</td><td>Issues list such as unescaped &amp;lt;/script&amp;gt; or --&amp;gt;</td><td>&nbsp;</td></tr>
8888-
</tbody>
8889-
</table>
88908878
<pre class="turtle"
88918879
data-content-type="text/turtle"
88928880
data-transform="updateExample"
8893-
data-result-for="Embedding JSON-LD in HTML with comments-expanded"
8881+
data-result-for="Embedding JSON-LD containing HTML in HTML-expanded"
88948882
data-to-rdf>
88958883
<!--
88968884
@prefix schema: <http://schema.org/> .
88978885
8898-
<> schema:name "Encoding Issues";
8899-
schema:description "Issues list such as unescaped &lt;/script&gt; or --&gt;" .
8886+
[ a schema:WebPageElement;
8887+
schema:name "Encoding Issues";
8888+
schema:description "Issues list such as unescaped </script> or - - >"
8889+
] .
89008890
-->
89018891
</pre>
89028892
</aside>

0 commit comments

Comments
 (0)