Quantcast
Channel: DEVONtechnologies Community - Latest posts
Viewing all articles
Browse latest Browse all 16117

Storing HTML source and PDF in a record

$
0
0

How do you create theRecord, i.e. which type do you provide?

source makes only sense with HTML or if the content can be converted to HTML
data is not defined for HTML records

Looking at your code, you seem to be retrieving the HTML from a document open in a DT window (although you don’t say so, which makes me take an educated guess). But there’s no point in guessing – please describe what you do in detail and provide complete code.

Aside: Setting the name property to an HTML-valued attribute is probably non-sensical – you want text in the name, not arbitrary HTML. For example, the innerHTML of the h1 element on this HTML page is

'<span class="topic-statuses"></span><a class="widget-link topic-link" href="/t/storing-html-source-and-pdf-in-a-record/78863" title="" data-topic-id="78863"><span>Storing HTML source and PDF in a record</span></a><span class="header-topic-title-suffix">      \n\n</span>'

Is that what you want to have as the name of your record?

So, instead of innerHTML, use innerText.


Viewing all articles
Browse latest Browse all 16117

Trending Articles