I am getting complete html. In sling model use property as:
@ValueMapValue
private String text;
@Override
public String getText() {
return text;
}
At Ui side, Use below to render:
<sly data-sly-use.model="<your-slingmodel">
${model.text @context='html'}
Hope this helps!