1 package org
.argeo
.cms
.text
;
4 import javax
.jcr
.RepositoryException
;
7 * Text interpreter that sanitise and validates before saving, and support CMS
8 * specific formatting and integration.
10 class TextInterpreterImpl
extends IdentityTextInterpreter
{
11 private MarkupValidatorCopy markupValidator
= MarkupValidatorCopy
.getInstance();
14 protected void validateBeforeStoring(String raw
) {
15 markupValidator
.validate(raw
);
19 protected String
convertToStorage(Item item
, String content
) throws RepositoryException
{
20 return super.convertToStorage(item
, content
);
24 protected String
convertFromStorage(Item item
, String content
) throws RepositoryException
{
25 return super.convertFromStorage(item
, content
);