Anyone ever have to convert a text field to HTML before uploading into a SQL Dbase? So what I’m trying to do, I’m reading values from an XLSX sheet. The data in the XLS sheet has some line breaks and lets say bullets. I need this data from the XLSX to be converted to HTML code (with
etc) from the data that in the cell before I upload it into SQL.
The typical approach would be to construct HTML in EasyMorph using expressions and text function. For instance you can replace line breaks with the <br/> tag as follows:
Is there some setting or formatting to allow this to happen? This is a sample of the data in the cell. When I try to execute it basically using a calculate a create new column. I call the replace ([text],linebreak(), ‘ ’). I even tried based on the sample as Replace([text], linebreak(), ‘’). But both of these does nothing. Its almost like it can’t find the line break instead of my sample.
SampleText: (below)
This is a sample textdocument. Need to figure out why this is not working and why the cell when ready and calculating it won’t replace the line breaks.
Pros:
• How easy is it to use
• Interesting how this is not working
• Line is calculated and does nothing
Thanks Dmitry! Worked great! Should it have worked with linebreak()? i saw you had another example somewhere that also referenced using that instead of the ascii number. I’m going to look over your sample too cause i"m sure I’ll need to add other html formatting to my list.