Try using "Template" action and construct your text with hyerlinks than paste it to page.
Other option is to create simple LOCAL html page somewhere on your hard disk with
desired text and links, than open that local html page in another tab in BAS and than copy
from that tab to the tab where you are working.
Преобразовать html в docx
-
Пробую преобразовать html в docx используя это https://github.com/evidenceprime/html-docx-js
в Node.js записал следующее:
var htmlDocx = require('html-docx-js'); var html = [[HTML]]; var docx = htmlDocx.asBlob(html); [[DOCX]] = docxНо после записи переменной DOCX в файл пишется [object Object]
Подскажите пожалуйста, где ошибка? -
сделал так:
var htmlDocx = require('html-docx-js'); var saveAs = require('file-saver'); var html = [[HTML]]; var converted = htmlDocx.asBlob(html); saveAs(converted, 'test.docx');но как теперь test.docx в файл сохранить? если сохранить в переменную, то выводит также [Object object]
В диспетчере переменных, если добавить converted = [[DOCX]] это выглядит так:
DOCX: {
data: [ ]
type: "Buffer"
} -
@Daniel said in Преобразовать html в docx:
но как теперь test.docx в файл сохранить?
Смотрите примеры использования модуля "fs"