{"id":1288,"date":"2018-11-22T18:45:19","date_gmt":"2018-11-22T18:45:19","guid":{"rendered":"https:\/\/www.s-sols.com\/?post_type=doc&#038;p=1288"},"modified":"2022-09-15T17:39:03","modified_gmt":"2022-09-15T17:39:03","slug":"raw-html","status":"publish","type":"doc","link":"https:\/\/www.s-sols.com\/docs\/wordpress\/post-docx-source\/getting-started-pds\/body\/raw-html","title":{"rendered":"Raw HTML Post .DOCX Source for WordPress"},"content":{"rendered":"<p>\n  Raw HTML tags with attributes are supported by mark such content with styles with predefined names. The styles\u2019 properties (color, font, hidden, etc.) can set to any appropriate values.\n<\/p>\n<h2><a id=\"content\"><\/a>Raw content<br \/>\n<\/h2>\n<p>\n  Text content should be marked with <strong>style<\/strong> with the name \u2018<strong>Raw<\/strong>\u2019.\n<\/p>\n<p>\n  In below example style is colored blue to easily catch it in the document. See the picture below.\n<\/p>\n<p style=\"text-align:center\">\n  <img decoding=\"async\" src=\"\/data\/content\/doc\/wordpress\/post-docx-source\/raw-html\/html-raw-en.png\" alt=\"html-raw\" title=\"html-raw - Raw HTML\" \/>\n<\/p>\n<p>\n  And, HTML result of such markup is:\n<\/p>\n<p style=\"text-align:center\">\n  <img decoding=\"async\" src=\"\/data\/content\/doc\/wordpress\/post-docx-source\/raw-html\/html-raw-result-en.png\" alt=\"html-raw-result\" title=\"html-raw-result - Raw HTML\" \/>\n<\/p>\n<p>\n  See the <a href=\"https:\/\/www.s-sols.com\/data\/products\/wordpress\/post-docx-source\/samples\/Main%20Sample.docx\">sample<\/a>.\n<\/p>\n<h2><a id=\"attributes\"><\/a>Raw attributes<br \/>\n<\/h2>\n<p>\n  Text content should be marked with <strong>style<\/strong> with the name \u2018<strong>Raw Attributes<\/strong>\u2019. Typed attributes relate to the closest content after it. Attributes in separate paragraphs are combined and relate to the closest paragraph.\n<\/p>\n<p>\n  In the below example style is colored to green to easily catch it in the document and separate it from \u2018<strong>Raw<\/strong>\u2019. Also, it is marked as hidden to prevent layout breaking. See the picture below.\n<\/p>\n<p style=\"text-align:center\">\n  <img decoding=\"async\" src=\"\/data\/content\/doc\/wordpress\/post-docx-source\/raw-html\/html-raw-attributes-en.png\" alt=\"html-raw-attributes\" title=\"html-raw-attributes - Raw HTML\" \/>\n<\/p>\n<p>\n  And, HTML result of such markup is:\n<\/p>\n<p style=\"text-align:center\">\n  <img decoding=\"async\" src=\"\/data\/content\/doc\/wordpress\/post-docx-source\/raw-html\/html-raw-attributes-result-en.png\" alt=\"html-raw-attributes-result\" title=\"html-raw-attributes-result - Raw HTML\" \/>\n<\/p>\n<p>\n  See the <a href=\"https:\/\/www.s-sols.com\/data\/products\/wordpress\/post-docx-source\/samples\/Main%20Sample.docx\">sample<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Raw HTML tags with attributes are supported by mark such content with styles with predefined names. The styles\u2019 properties (color, font, hidden, etc.) can set to any appropriate values. Raw content Text content should be marked with style with the name \u2018Raw\u2019. In below example style is colored blue to easily catch it in the&#8230;<\/p>\n","protected":false},"author":18,"featured_media":0,"parent":1018,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"rank_math_lock_modified_date":false},"categories":[113],"tags":[522,173,493,215],"class_list":["post-1288","doc","type-doc","status-publish","hentry","category-post-docx-source","tag-attributes","tag-html","tag-raw","tag-tags"],"_links":{"self":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc\/1288","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/types\/doc"}],"author":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/comments?post=1288"}],"up":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc\/1018"}],"wp:attachment":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/media?parent=1288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/categories?post=1288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/tags?post=1288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}