Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
borrisbeck
Contributor
Contributor

Problem converting HTML to plain text using jsoup

Hi

I have a base64 data coming in from one of a column from salesforce, after converting the data, its evenutally a html data with all the tags, the downstream doesn't want those tags, i tried converting the html data to plain text using "jsoup" in tjavaflex. but I keep getting the error  "Detail Message: whitelist cannot be resolved to a variable", can someone let me know what i'm doing wrong, i have even placed the jar files in the appropriate directory.

 

 

code to convert html to plain text in "tjavaflex"

 

import org.jsoup.Jsoup;
import org.jsoup.helper.Validate;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.io.IOException;

output_row.sf_input_col= Jsoup.clean(sf_input_col, whitelist);

 

 

 

error

 

Error Line: 7406
Detail Message: whitelist cannot be resolved to a variable

thanks

MJ

 

Labels (1)
1 Reply
Anonymous
Not applicable

Hello,

Where is your  "whitelist" from? Any double quotes missing? Could you please post the whole job setting screenshots here?

Best regards

Sabrina