Question: I need to transform this :

```
<input type="button" value="O">

```

In a text. Anyone can help me?

Answer: 
```
$('input')[0].outerHTML

```

[demo](https://jsfiddle.net/p4yywzt7/)

[Get selected element's outer HTML](https://stackoverflow.com/questions/2419749/get-selected-elements-outer-html)
You can use in pure HTML like this.

```
<pre>
    &ltinput type="button" value="O"&gt
</pre>

```

Using java script you can find and replace < >.

```
Ex: HTML.replace(/&/g, '&amp;').replace(/</g, '&lt;');

```