Browse Source

Unescape HTML from document

master
Danila Fedorin 8 months ago
parent
commit
d7a601dd5e
  1. 2
      convert.rb

2
convert.rb

@ -2,8 +2,10 @@ require "open3"
require "nokogiri"
require "net/http"
require "json"
require "cgi"
def render_cached(cache, display, string, render_comment = nil)
string = CGI.unescapeHTML string
cache.fetch(string) do |new|
puts " Rendering #{render_comment || new}"
res = Net::HTTP.post URI("http://localhost:8000/render"),

Loading…
Cancel
Save