# Html format variable

**URL:** <https://forum.kirupa.com/t/html-format-variable/76050>\
**Category:** Uncategorized\
**Created:** [January 14, 2005, 10:39am UTC](https://forum.kirupa.com/t/html-format-variable/76050 "2005-01-14T10:39:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![studentu777](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@studentu777](https://forum.kirupa.com/u/studentu777)\
**Post date:** [January 14, 2005, 10:39am UTC](https://forum.kirupa.com/t/html-format-variable/76050/1 "2005-01-14T10:39:13Z")

</div>

I have a variable myVar1 that is in html format like this  
\<table\>  
\<tr\>  
\<td\>4\</td\>  
\</tr\>

How can I transform myVar1 in simple text format myVar1=4 to be able  
to do this myVar2 = Number(myVar1)+1
