<table> <tr> <td>0 - 10<br>15 - 30<br>40 - 100</td> </tr> </table> <script> [...document.querySelector('td').innerText].forEach(s => console.log(s, s.charCodeAt(0))) </script>