| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <html> |
| <head> |
| <title>Hello World!</title> |
| <meta name="title" content="Embedded JSONLD extractor"/> |
| <!-- As per spec in http://www.w3.org/TR/json-ld/#embedding-json-ld-in-html-documents --> |
| <script type="application/ld+json"> |
| /* first |
| multiline comment |
| # */ |
| # for funsies -- although this one won't occur in html |
| //first single line comment! |
| <![CDATA[ |
| //second single line comment |
| /* //**second multiline comment* */ //third single line comment |
| [{ |
| "@context": "http://json-ld.org/contexts/person.jsonld", |
| "@id": "http://dbpedia.org/resource/Robert_Millar", |
| //the above urls should test that comments inside quotes are *not* stripped |
| "@type": "Person",]]> /* |
| multiline comment |
| inside json */ "name": <![CDATA["Robert\\\" Millar\\\\\"\"\\\\", //comment |
| #comment |
| "born": "1958-09-13T00:00:00" |
| }]]]> ///some more commenting |
| /* a |
| final |
| multiline |
| comment*/ //a final single line comment |
| </script> |
| |
| |
| </head> |
| <h1>Embedded JSONLD Extractor</h1> |
| <p>It extracts only the embedded JSON-LD elements. |
| </html> |