title: How can I save HTML content in SQLite Database
body: <p>How can we save a JSON adapted WordPress posts with links, images, in a way that is accessible offline?</p>
  
  <p>There is no problem for save plain text and thumbnail images, but how can we save images that are among texts?</p>
  
  <blockquote>
    <p>Here is an idea: we could make an algorithm to reverse values between &lt;img> so we can download the image, then address the device memory so that when it is read from the database, texts and images will be shown properly</p>
  </blockquote>
  
  <p>What's the best way to save an HTML file content completely and thoroughly?</p>
  
  <p>For example, I have this string:</p>
  
  <pre><code>&lt;p&gt; Text 1 &lt;/p&gt; &lt;img src="www.test.com/1.jpg" &gt;
  &lt;p&gt; Text 2 &lt;/p&gt; &lt;img src="www.mydomain.com/2.jpg" &gt;
  </code></pre>
  
  <p>and I want save it into SQLite like this :</p>
  
  <pre><code>&lt;p&gt; Text 1 &lt;/p&gt; &lt;img src= myDir + "/1.jpg" &gt;
  &lt;p&gt; Text 2 &lt;/p&gt; &lt;img src= myDir + "/2.jpg" &gt;
  </code></pre>
  
  <p>What's your idea about pattern?</p>