contributions/text.placeholders/lib/helpers/converters/textplaceholders.converter.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Replace place holders 00004 * 00005 * @author Gerd Riesselmann 00006 * @ingroup Placeholders 00007 */ 00008 class ConverterTextPlaceholders implements IConverter { 00009 /** 00010 * Purify HTML 00011 * 00012 * @param string $value 00013 * @param array See http://htmlpurifier.org/live/configdoc/plain.html for all possible values 00014 */ 00015 public function encode($value, $params = false) { 00016 return TextPlaceholders::apply($value); 00017 } 00018 00019 /** 00020 * This function does nothing! Especially it does NOT purify HTML! 00021 */ 00022 public function decode($value, $params = false) { 00023 return $value; 00024 } 00025 }