我有一个表,并且有一个字段可以存储大量的 html 数据。每个 html 数据都有许多 url 和许多其他文本。错误地将 html 数据插入表中时,超链接 src 属性中存储了一些空间,如下所示
http://www.mysite.com/content.aspx?%20content=Alfa_Romeo_164_1991_LCD_Climate_Control_it
http://www.mysite.com/content.aspx?%20content=Audi_A6_2001_Brake_Calliper_it
http://www.mysite.com/content.aspx?%20content=audi_a4_amp_a6_1996_2001_and_vw_passat_1996_2001_abs_pumps_commonly_failing_it
http://www.mysite.com/content.aspx?%20content=Audi_A2_Body_control_failure_it
http://www.mysite.com/content.aspx?%20content=Audi_A4_1997_Heater_Control_Unit_it
只看到%20表示空间。
actually url should stored in like this way without space
http://www.mysite.com/content.aspx?content=Alfa_Romeo_164_1991_LCD_Climate_Control_it
我想从每个 url 中查找空间并替换为没有空间。谢谢
更新这里是我的数据
<p align="left" class="MsoNormal" style="LINE-HEIGHT: normal"><span lang="IT" style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Centraline Climatizzatore<br></span><span style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt"><a href="http://www.bba-reman.com/content.aspx?content=Alfa_147_JTD_2005_Climate_Control_it"><font size="2" face="Arial">Alfa Romeo 147 JTD 2005 - Unità centralina climatizzatore (Numero di pezzo 7353377750) </font></a></span><span lang="IT" style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt"><br></span><span style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt"><a href="http://www.bba-reman.com/content.aspx? content=Alfa_Romeo_164_1991_LCD_Climate_Control_it"><span lang="IT" style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt">Alfa Romeo 164 Early 90s - Guasto centralina Climatizzatore LCD.</span></a></span><span lang="IT" style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt"><br></span><span style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt"><a href="http://www.bba-reman.com/content.aspx?content=Alfa-Romeo-156-16v-ABS-0273004535-italia"><span lang="IT" style="FONT-FAMILY: 'Arial','sans- serif'; FONT-SIZE: 10pt">Alfa Romeo 156 L'unità centralina climatizzatore non rimane alla temperatura stabilita</span></a></span></p>