<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: modify html file, replace image src in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/modify-html-file-replace-image-src/m-p/2457334#M140705</link>
    <description>&lt;P&gt;Thanks a lot, instead of tSendMail I put behind tJavaRow --&amp;gt; tFileOutputRaw and then&amp;nbsp;tSendMail.&lt;/P&gt;
&lt;P&gt;So I can iterate all my html, modify and send it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2024 08:31:22 GMT</pubDate>
    <dc:creator>pawe84</dc:creator>
    <dc:date>2024-05-29T08:31:22Z</dc:date>
    <item>
      <title>modify html file, replace image src</title>
      <link>https://community.qlik.com/t5/Talend-Studio/modify-html-file-replace-image-src/m-p/2456888#M140700</link>
      <description>&lt;P&gt;Hi Talend geeks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if I use tFileInputRaw on a html file as string can I modify the string in order to replace inside the&lt;/P&gt;
&lt;P&gt;image tag the path to another url, to &amp;lt;img src="&lt;A href="https://example/content/header.jpg" target="_blank"&gt;https://example/content/header.jpg&lt;/A&gt;" style="width: 538px" alt=""/&amp;gt;&amp;lt;/td&amp;gt;?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pawe84_0-1716889885929.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166969iA1CF82BB5EC3F0CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pawe84_0-1716889885929.png" alt="pawe84_0-1716889885929.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If yes, how to replace the substring?&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 09:53:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/modify-html-file-replace-image-src/m-p/2456888#M140700</guid>
      <dc:creator>pawe84</dc:creator>
      <dc:date>2024-05-28T09:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: modify html file, replace image src</title>
      <link>https://community.qlik.com/t5/Talend-Studio/modify-html-file-replace-image-src/m-p/2457248#M140703</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this code on tJavaRow to replace&amp;nbsp;"folder/header.jpg" with "&lt;A href="https://example/content/header.jpg" target="_blank"&gt;https://example/content/header.jpg&lt;/A&gt;", and assign the new string to a context variable for used later on tSendMail.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;//Code generated according to input schema and output schema
context.varName= input_row.content.toString().replace("folder/header.jpg","https://example/content/header.jpg");

System.out.println(context.varName);&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Shicong_Hong_0-1716958398927.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/166999iB5846157AB84B273/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Shicong_Hong_0-1716958398927.png" alt="Shicong_Hong_0-1716958398927.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Shicong&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 04:53:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/modify-html-file-replace-image-src/m-p/2457248#M140703</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-05-29T04:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: modify html file, replace image src</title>
      <link>https://community.qlik.com/t5/Talend-Studio/modify-html-file-replace-image-src/m-p/2457334#M140705</link>
      <description>&lt;P&gt;Thanks a lot, instead of tSendMail I put behind tJavaRow --&amp;gt; tFileOutputRaw and then&amp;nbsp;tSendMail.&lt;/P&gt;
&lt;P&gt;So I can iterate all my html, modify and send it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 08:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/modify-html-file-replace-image-src/m-p/2457334#M140705</guid>
      <dc:creator>pawe84</dc:creator>
      <dc:date>2024-05-29T08:31:22Z</dc:date>
    </item>
  </channel>
</rss>

