This might be a little bit odd question, but Im trying to figure out function that will remove numbers that are repeating them self.
this is my html
1234123<br>
23434<br>
5696<br>
5696<br>
34096756098<br>
I need function that will return numbers numbers without those that are duplicate them self
1234123<br>
23434<br>
5696<br>
34096756098<br>
Thank you for your help in advance
You basically need to get your string, via str = $(‘#myelement’).html(), then run the function below, which splits the string by line break, strips non-unique elements, then joins it together again: