Stay organized with collections
Save and categorize content based on your preferences.
TagHandler
interface TagHandler
Is notified when HTML tags are encountered that the parser does not know how to interpret.
Summary
Public methods |
abstract Unit |
This method will be called whenn the HTML parser encounters a tag that it does not know how to interpret.
|
Public methods
handleTag
abstract fun handleTag(
opening: Boolean,
tag: String!,
output: Editable!,
xmlReader: XMLReader!
): Unit
This method will be called whenn the HTML parser encounters a tag that it does not know how to interpret.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# Html.TagHandler\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nTagHandler\n==========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/text/Html.TagHandler \"View this page in Java\") \n\n```\ninterface TagHandler\n```\n\n|-----------------------------------|\n| [android.text.Html.TagHandler](#) |\n\nIs notified when HTML tags are encountered that the parser does not know how to interpret.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [handleTag](#handleTag(kotlin.Boolean,%20kotlin.String,%20android.text.Editable,%20org.xml.sax.XMLReader))`(`opening:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`, `tag:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `output:` `[Editable](/reference/kotlin/android/text/Editable)!`, `xmlReader:` `[XMLReader](../../org/xml/sax/XMLReader.html#)!`)` 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](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun handleTag(\n opening: Boolean, \n tag: String!, \n output: Editable!, \n xmlReader: XMLReader!\n): Unit\n```\n\nThis method will be called whenn the HTML parser encounters a tag that it does not know how to interpret."]]