Klipfolio. The KPI Dashboard - Evolved
The KPI Dashboard – Evolved
1-877-233-6149
Contact Us

Klip Developer Guide

Table of Contents

A.2. @parse flat

Unlike the rest of the attributes, this is a global directive and must be placed at the top of the style definition.

            
<style>       
  @parse flat;
  
  selector {
    property_1: value;
    property_2: value;
    ...
    }
</style>    

        

This directive instructs the XML parser to preserve all white space as text entities (such as new lines between tags) when extracting text. For example, if you defined a CSS entry to extract the contents of <title>, and the content source had the following entry:

            
<item>
  <title>First     contact</title>
  ...
</item>

        

Klipfolio Dashboard would normally extract First contact for title. However, if you define @parse flat; at the top of the Klip's CSS, then Klipfolio Dashboard would extract First     contact instead.