All Downloads are FREE. Search and download functionalities are using the official Maven repository.

samples.data.test.html Maven / Gradle / Ivy

Go to download

Jericho HTML Parser is a simple but powerful java library allowing analysis and manipulation of parts of an HTML document, including some common server-side tags, while reproducing verbatim any unrecognised or invalid HTML. It also provides high-level HTML form manipulation functions.

There is a newer version: 2.3
Show newest version
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-i18n.tld" prefix="i18n" %>




 


 

Test HTML Document

This document contains many elements with optional end tags and some common illegal HTML constructs to demonstrate the new functionality in version 1.1.

Table Example
First ColumnSecond Column
Cell 1
This is a table within the table
Second row of inner table

This paragraph contains a comment. This text is a continuation of the paragraph before the one that is commented out.

  • item 1
  • item 2
    • subitem 1
    • subitem 2
  • item 3
  • item 4
    1. Ordered list within an unordered list
    2. Second item of ordered list

    paragraph within a list item

This text contains incorrectly nested formatting tags which is

quite commonly generated by HTML editors. This text occurs outside of the FONT element, but is still considered to be part of the previous paragraph because FONT elements spaning block elements are illegal.

Server Tag Examples:

Hello World

'; ?> <%= $variable %> <%@ include file="relativeURL" %>

This paragraph has a dynamic id attribute

The following is Mason server code sampled from http://www.masonbook.com/book/chapter-2.mhtml:

<& menu &> <&| /i18n/itext, lang => $lang &> %# The bits in here will be available from $m->content in the /i18/text Hello, <% $name %>. These words are in English. Bonjour, <% $name %>, ces mots sont franE<#xC3>E<#xA7>ais. Ellohay <% substr($name,2) . substr($name,0,1) . 'ay' %>, esethay ordsway areyay inyay Igpay Atinlay. <%def .make_a_link> <% $text %> <%args> $path %query => ( ) $text <%init> my $url = ...





© 2015 - 2024 Weber Informatics LLC | Privacy Policy