DocBook|Search
Class Reference
%iKnow.Source.Converter.Html
   
Server:basexml
Instance:SOAXML
User:UnknownUser
 
-
  [BASEXML] >  [%iKnow] >  [Source] >  [Converter] >  [Html]
Private  Storage  

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.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
4


Summary

Properties
Params

Methods
%%OIDGet %AddToSaveSet %ClassIsLatestVersion %ClassName
%ConstructClone %DispatchClassMethod %DispatchGetModified %DispatchGetProperty
%DispatchMethod %DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty
%Extends %GetParameter %IsA %IsModified
%New %NormalizeObject %ObjectModified %OriginalNamespace
%PackageName %RemoveFromSaveSet %SerializeObject %SetModified
%ValidateObject BufferString Convert GetMetadataKeys
NextConvertedPart SetParams


Methods

• 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.