highlightMeta(name, prefix, suffix [, encode])
Returns a metadata field of the current context document, highlighting found terms of the last lucene search
This is a TMLScript way to put out metadata fields of a lucene search result while highlighting the found terms.
Additionally it allows to encode the item before the highlighting prefix and suffix are applied.
This method will only work when the document of the chosen context was directly retrieved from a lucene search result.
Name of the metadata field to return
HTML code that is added before each found lucene term
HTML code that is added after each found lucene term
encode (String, optional):
A WebTML encoding in which the metadata text is encoded before the prefix and suffixes are applied. Accepts alle encodings that are available to the OpenWGA runtime