使用<和>而不是<和>在HTML中

时间:2018-01-03 07:25:38

标签: javascript html

我将HTML内容(带有base64图像)传递到Web服务中。我们的网络服务格式不允许'<'和'>',所以我使用<>。但我无法检索内容。 HTML编辑器本身不提供输出。 我怎样才能做到这一点?以下是我的示例代码。

<html><body>&lt;p&gt;&lt;img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAABRCAYAAABv/dCnAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAABf3SURBVHhe5VwHdFzVmf7e9BlpNJpRly3Jslxl44LBdjCYsraBDaSwnOymnYT0BA4nOSmbhAA52RAg7GaXFBICAQJJMJiEECBgAjY2Fi5ylauwmtVHo+m9vv3/995YbUaakZ2Vnf2O38y8e++77/7f/du978lCKpUScZFBUL4nG7ggCIjEk3j3aC9mVRSjurQQZp1q0mtG46IjhkkJRuNIpgQUGTUTBGVCGD954QAW1tjw/jX10jlEMWdSGBcfMST4yR4PGqrM0KpVSqkMrusb8uHHmw/j4TvXS2UiETIdjO35IsGxLgd0GrVyJoNJOdw+hJ+9fEQhhTRkmqQwLkpiEE8oP2QwKZ39bjy7vRUPfPYqiZBz4ETCRUnMcCCm/GJS5O/vPdGMBz8nkzIa/69MSa98yxDwrUd24Lff3qCcyxqUPlQq1ci5Up8LLi5iSDhGKK6VvllYVp6yUis0GlkULtt3chAPPLsP9z3XjAe2HMCjW09h81snmEOpPhdc8FFptCARXxShwZ14/q0duGVtNVIk6c4WPy5dfhnmrbgOzgjw1Z/vxqc31eOfllUqV43gtX2dWF5fguqyoilN7IIkhgfNJsBwdh6F78wDUCeeR6E1gWKSV2UmY4qnpHqoBSS8Mbh6gY5eA+pqvoDSJfdCa7FJ1SSf9M0E85EkcVU5KM0FSAwLQA62fTc8rR9C1dwhFJQXAEkDMUaZK8k5erIlGYlDgXlUJelHBI72EJwDS1F1+auwVNUq7fMT84IiJm02J166BrPn7UBRlZU0Q0OzznVSVU6QS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R7PGbRz0/ZUrRv4Lk+PUT61VBzP5iUnmT9LCJvIrPNOrayc6VK5/hdZBK6tNmFWso3qlgsB1LtKyg30haf03/tpMyEpMGmmzaO72o8Mdx3v2IJYREWtqClBZJC8fMg0yDdIoaR/WYmT1ls3oFUrPbRRCNRSCefOZm7OJpPdrmSHuUe5GLtt8aBilhVpsoEQs0/14ItjE+NHx6HquC5PZPnPIhS/QkiAXUhhTEpPGWWGp41+8O4Tb13GKLRVw0QTwAPiaUZdJkGVVCgnpgTIxfd4YfBRVFpQbYKBQ6yHtervDjy6akE9eaoORiNRSuXbce26/aBqUwu7GhcVn+0vfp520+s02P764Nrcom0bOxKTBMrEQv95HM0gOjx1dmUmNJVVjM8fpIM1XS3+I1l5J+OhY31AoadvhviAJGZGcrKCmXCuWgisQBWVP+MRKm/Lfv/H95U74La/H9jkwr0QvZb75ji1vYhjp2ZAh4rQjQr5ET7lE5pVrvpC7FvB7ykqNOgHk33F1Q5F0Dwb/bYCeNOeNVi/dU4VVlIsUkmly9DnQH0a3OwLey/7oSvlF7elM2LSIYfDN0ubF368cd+GmJfJex7mSw/1RZEO1RSe94CMjbbLs5JVJke4vkv8Lwk0myI+CLqk0wWzg11jkMU4X0yZmNOQJFvAkpeG3kYPjkukOikmh8A9fNIX3kWOm8Ullk2FsfTrTnfyaqXBeiGGcJYfsut6mxzXziqRynmbKIrIKx0KMTtWfO+LCPJsWq2omvt72f4nzRkwaTEAXrYBfPelFNa1s37/IAp1WfmUjGziE/4VCOEekT15aQmGb905mjhTGeSeGIU++QE4yhTfafHBTfqHXqEDRVkrf+Xk513FDdtfsEzbOJw3jC4mQmaWEAfwv/7nmqMaT4O8AAAAASUVORK5CYII=" /&gt;&lt;br /&gt;&lt;br /&gt;---------- Reply message ----------&lt;br /&gt;From: a.b@gmail.com&lt;br /&gt;Date: 02/01/2018 05:42:34 PM&lt;br /&gt;Subject: Re: Started-df&lt;br /&gt;To: d.e@gmail.com&lt;br /&gt;------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div dir="ltr"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class="gmail_extra"&gt;&lt;br clear="all" /&gt;
&lt;div&gt;
&lt;div class="gmail_signature" data-smartmail="gmail_signature"&gt;
&lt;div dir="ltr"&gt;
&lt;div&gt;
&lt;div dir="ltr"&gt;
&lt;div&gt;
&lt;div dir="ltr"&gt;
&lt;div&gt;
&lt;div dir="ltr"&gt;
&lt;div&gt;
&lt;div dir="ltr"&gt;
&lt;div dir="ltr"&gt;
&lt;div dir="ltr"&gt;
&lt;div dir="ltr"&gt;
&lt;div dir="ltr"&gt;
&lt;div dir="ltr"&gt;
&lt;div dir="ltr"&gt;
&lt;div dir="ltr"&gt;&lt;span style="color: #999999;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div dir="ltr"&gt;&lt;span style="color: #999999; font-family: 'arial black', sans-serif;"&gt;&lt;strong&gt;&lt;em&gt;Regards,&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;
&lt;div&gt;&lt;span style="color: #999999; font-family: 'arial black', sans-serif;"&gt;&lt;span style="background-color: #ffffff;"&gt;a&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color: #999999; font-family: 'arial black',sans-serif; font-size: 12.8px;"&gt;Mobile: +913344556677&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color: #999999; font-family: 'arial black', sans-serif;"&gt;&lt;span style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class="gmail_quote"&gt;On Tue, Jan 2, 2018 at 4:26 PM, &lt;a href="mailto:d.e@gmail.com"&gt;d.e@gmail.com&lt;/a&gt; &lt;span dir="ltr"&gt;&amp;lt;&lt;a href="mailto:d.e@gmail.com" target="_blank" rel="noopener"&gt;d.e@gmail.com&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br /&gt;
&lt;blockquote class="gmail_quote" style="margin: 0 0 0 .8ex; border-left: 1px #ccc solid; padding-left: 1ex;"&gt;
&lt;p&gt;&lt;img /&gt;&lt;br /&gt;&lt;br /&gt;---------- Reply message ----------&lt;br /&gt;From: &lt;a href="mailto:d.e@gmail.com" target="_blank" rel="noopener"&gt;d.e@gmail.com&lt;/a&gt;&lt;br /&gt;Date: 02/01/2018 03:42:06 PM&lt;br /&gt;Subject: Ticket Started-dfd&lt;br /&gt;To: &lt;a href="mailto:a.b@gmail.com.com" target="_blank" rel="noopener"&gt;a.b@gmail.com.com&lt;/a&gt;&lt;br /&gt;Cc: &lt;a href="mailto:k.s@gmail.com" target="_blank" rel="noopener"&gt;k.s@gmail.com&lt;/a&gt;;&lt;a href="mailto:t.m@gmail.com" target="_blank" rel="noopener"&gt;t&lt;wbr /&gt;a@gmail.com&lt;/a&gt;;&lt;a href="mailto:d.e@gmail.com" target="_blank" rel="noopener"&gt;dmeeu.&lt;wbr /&gt;entity@gmail.com&lt;/a&gt;;&lt;br /&gt;------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;dfgd&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
&lt;/div&gt;</body></html>

0 个答案:

没有答案