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 - 02 Mar 2020, UnknownUser
© 2020 Ultranauts - 75 Broad Street, 2nd Floor, Suite 206, New York, NY 10004 - info@ultranauts.co