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
15 protected void validateBeforeStoring(String raw
) {
16 markupValidator
.validate(raw
);
20 protected String
convertToStorage(Item item
, String content
)
21 throws RepositoryException
{
22 return super.convertToStorage(item
, content
);
26 protected String
convertFromStorage(Item item
, String content
)
27 throws RepositoryException
{
28 return super.convertFromStorage(item
, content
);