com.atlassian.confluence.content.render.xhtml.transformers
Class RemoveApostropheEntityTransformer

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.transformers.RemoveApostropheEntityTransformer
All Implemented Interfaces:
Transformer

public class RemoveApostropheEntityTransformer
extends Object
implements Transformer

A Transformer that removes that apostrophe entity which is invalid in HTML.

When rendering to view you can't guarantee the output you have is XML (as you are rendering to HTML). As such, we don't have the liberty of parsing this output as XML - hence the regex implementation here.


Constructor Summary
RemoveApostropheEntityTransformer()
           
 
Method Summary
 String transform(Reader input, ConversionContext conversionContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveApostropheEntityTransformer

public RemoveApostropheEntityTransformer()
Method Detail

transform

public String transform(Reader input,
                        ConversionContext conversionContext)
                 throws XhtmlException
Specified by:
transform in interface Transformer
Returns:
Throws:
XhtmlParsingException - if there is a problem parsing the input parameter.
XhtmlException - for all other errors that may occur during transformation.


Copyright © 2003-2012 Atlassian. All Rights Reserved.