NetTalk Central

Author Topic: Split a string in a NetWebBrowse column?  (Read 2159 times)

Nick

  • Full Member
  • ***
  • Posts: 118
    • View Profile
    • Email
Split a string in a NetWebBrowse column?
« on: February 02, 2014, 08:21:31 AM »
How can I split a string in a NetWebBrowse column like this?
string: My Company 133 MyStreet MyPlace

My Company
133 MyStreet               
MyPlace

In html I could use breaks <br> but that doesn't seem to work here.

TIA,
Nick

Nick

  • Full Member
  • ***
  • Posts: 118
    • View Profile
    • Email
Re: Split a string in a NetWebBrowse column?
« Reply #1 on: February 02, 2014, 09:34:01 AM »
If I allow xHtml in the column I thought I could use: '&lt;br&frasl;&gt;'  ( <br/> ) but that doesn't work and  '&lt;br/&gt;' neither.
Anybody knows how to do this?

TIA,
Nick

Nick

  • Full Member
  • ***
  • Posts: 118
    • View Profile
    • Email
Re: Split a string in a NetWebBrowse column?
« Reply #2 on: February 02, 2014, 10:07:41 AM »
Ok got it just <br /> encoding seems not necessary or doesn't work? Anyway it works.

I had to change this 4 times before it had any effect!!
Finally I switched on a random template-checkbox and that did it. After that the generated code changed.
I've seen that before: the checkbox-change triggers it.
Very tedious working if you're not sure if a change really makes it way to the generated code. 
Yes I checked the generated code, the old stuf was there and showed on screen in the table-column.

C9 or Nettalk-template?

Nick

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11181
    • View Profile
Re: Split a string in a NetWebBrowse column?
« Reply #3 on: February 02, 2014, 10:41:22 PM »
the whole point of "allow html" is to allow you to include xHTML.
<br> is not valid, but <br/> is (as you've discovered).

'&lt;br&frasl;&gt;' is just text, and will thus be displayed as just text.

Cheers
Bruce

Nick

  • Full Member
  • ***
  • Posts: 118
    • View Profile
    • Email
Re: Split a string in a NetWebBrowse column?
« Reply #4 on: February 03, 2014, 01:35:35 AM »
Yes that's clear. I only tried '&lt;br&frasl;&gt;' because the help-text speaks about "encoding &, < and > signs".

Cheers,
Nick