1 21 package au.id.jericho.lib.html; 22 23 final class StartTagTypePHPScript extends StartTagTypeGenericImplementation { 24 protected static final StartTagTypePHPScript INSTANCE=new StartTagTypePHPScript(); 25 26 private StartTagTypePHPScript() { 27 super("PHP script","<script",">",EndTagType.NORMAL,true,true,false); 28 } 29 30 protected Tag constructTagAt(final Source source, final int pos) { 31 final StartTag startTag=(StartTag)super.constructTagAt(source,pos); 32 if (startTag==null) return null; 33 if (!"php".equalsIgnoreCase(startTag.getAttributes().getValue("language"))) return null; 35 return startTag; 36 } 37 } 38 39 | Popular Tags |