Stay organized with collections
Save and categorize content based on your preferences.
Html.TagHandler
public
static
interface
Html.TagHandler
android.text.Html.TagHandler
|
Is notified when HTML tags are encountered that the parser does
not know how to interpret.
Summary
Public methods |
abstract
void
|
handleTag(boolean opening, String tag, Editable output, XMLReader xmlReader)
This method will be called whenn the HTML parser encounters
a tag that it does not know how to interpret.
|
Public methods
handleTag
public abstract void handleTag (boolean opening,
String tag,
Editable output,
XMLReader xmlReader)
This method will be called whenn the HTML parser encounters
a tag that it does not know how to interpret.
Parameters |
opening |
boolean |
tag |
String |
output |
Editable |
xmlReader |
XMLReader |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# Html.TagHandler\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nHtml.TagHandler\n===============\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/text/Html.TagHandler \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nHtml.TagHandler\n`\n\n\n`\n\n\n`\n\n|------------------------------|\n| android.text.Html.TagHandler |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nIs notified when HTML tags are encountered that the parser does\nnot know how to interpret.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[handleTag](/reference/android/text/Html.TagHandler#handleTag(boolean,%20java.lang.String,%20android.text.Editable,%20org.xml.sax.XMLReader))`(boolean opening, `[String](/reference/java/lang/String)` tag, `[Editable](/reference/android/text/Editable)` output, `[XMLReader](/reference/org/xml/sax/XMLReader)` xmlReader) ` This method will be called whenn the HTML parser encounters a tag that it does not know how to interpret. |\n\nPublic methods\n--------------\n\n### handleTag\n\nAdded in [API level 1](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void handleTag (boolean opening, \n String tag, \n Editable output, \n XMLReader xmlReader)\n```\n\nThis method will be called whenn the HTML parser encounters\na tag that it does not know how to interpret.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------|--------------------|\n| `opening` | `boolean` \u003cbr /\u003e |\n| `tag` | `String` \u003cbr /\u003e |\n| `output` | `Editable` \u003cbr /\u003e |\n| `xmlReader` | `XMLReader` \u003cbr /\u003e |"]]