BorisMoore/jsrender — Issue #71: Rendering html embedded in JSON
Author: worraps
Created: 2012-02-09 16:50:51+00:00
State: open

I can't seem to find a method to get the embedded html to render during the $.render() process. I have tried various methods to unescape it in the template. But I never get a link. What am I missing?

Sorry jsfiddle is in migration right now and not allowing changes.

**HTML**

```html

Sample:

```

**JSON**

```json
json={"rs":
{
"label":"This is a label that works fine.",
"content":'Go here'
}
};
```

**Javascript**

```javascript
$.template('testTemplate','LABEL: {{=label}}
{{=content}}');
$("#myDiv").html($.render(json.rs,"testTemplate"));
```

**Returns the following output instead of a link**

```html
Sample:
LABEL: This is a label that works fine.
Go here
```