# j-iFramePreview

> j-iFramePreview: easy usage for e.g. invoices, mails or some other previews; can render HTML safely

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: en
Content-SHA256: 660c3ee1b7cef0cb562f1b5c9687a59cadfbcaf102ac35fb10b7a39eba90f632
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

- can render HTML safely
- height of iframe is automatically counted from the `body`

__Methods__:
- `component.resize()`

Use it with `<ui-component name="iframepreview">`. When the component is not loaded yet, jComponent downloads it on first use from the address in `DEF.fallback` (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.

```html example.html
<div>This component can render HTML code safely:</div>
<ui-component name="iframepreview" path="customhtml"></ui-component>

<script>
	SET('customhtml', '<div><b>Total.js</b></div><br /><br /><a href="https://www.totaljs.com">www.totaljs.com</a>');
</script>
```
