Home > Net >  More about HTML content in the database without rhyme or reason?
More about HTML content in the database without rhyme or reason?

Time:11-17

Coding HTML content: & amp; lt; Span class=& amp; quot; Atwho - inserted& quot; Data - atwho - at - the query=& amp; quot; @ & amp; quot; & gt; & lt; A href=https://bbs.csdn.net/topics//OthersWeibo/OthersWeibo?" Id=24 Atid "class=" "> @ xiao-xia luo ? & nbsp;
Database shows: & amp; lt; Span class=& amp; quot; Atwho - inserted& quot; Data - atwho - at - the query=& amp; quot; @ & amp; quot; & gt; & lt; A href=https://bbs.csdn.net/topics//OthersWeibo/OthersWeibo?" Id=24 Atid "class=" "> @ xiao-xia luo ? & amp; amp; nbsp;

Then I after decoding I @ behind more? Such as: XXX?

CodePudding user response:

HTML is a plain text, why do you want to write database "code"?

Do the extra often have demon,

CodePudding user response:

If you say you have a binary byte array, you write a text encoding type of database field, you have no way to don't understand the database of the binary type fields, speaking, reading and writing, perhaps this is understandable, but an HTML is plain text, you also "encoding" text field, writing database this process is superfluous,
  •  Tags:  
  • C#
  • Related