class %iKnow.Source.Converter.Html
extends %iKnow.Source.Converter
This is a sample implementation for %iKnow.Source.Converter, designed
to weed out HTML tags from plain text input. Data is first buffered into a process-private
global and stripped of HTML in the Convert call.
Note: this is a simplified code sample. Some unlucky combinations of opening and
closing brackets spanning multiple BufferString invocations, might
remain undetected.
Parameters
|
Properties
|
Methods
|
Queries
|
Indices
|
ForeignKeys
|
Triggers
|
|
|
4
|
|
|
|
|
method BufferString(data As %String)
as %Status
Buffer data in the PPG
method Convert()
as %Status
Loop through buffered data and strip off HTML tags. Reset the pointer in the root
PPG node at the end, for NextConverterdPart to know
where to start.
method NextConvertedPart()
as %String
Loop through the PPG again and return processed strings.