internal package Foswiki::Serialise::Embedded

See PublishedAPI for packages intended to be used by Plugin and Contrib authors, or browse all packages.
See also Developing plugins, Developer's Bible, Technical Overview

internal package Foswiki::Serialise::Embedded

This is the on disk format serialiser and deserialise for Foswiki topics legacy .txt format.

WARNING this is only for Foswiki::Meta objects.

ClassMethod new( $class, ) → $cereal

StaticMethod dataEncode( $uncoded ) → $coded

Encode meta-data field values, escaping out selected characters. The encoding is chosen to avoid problems with parsing the attribute values in embedded meta-data, while minimising the number of characters encoded so searches can still work (fairly) sensibly.

The encoding has to be exported because Foswiki (and plugins) use encoded field data in other places e.g. RDiff, mainly as a shorthand for the properly parsed meta object. Some day we may be able to eliminate that....

Topic revision: r1 - 27 Feb 2018, UnknownUser
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding EveToolsWiki? Send feedback