2014-01-10 48 views
-3

我使用一個包含表中的某些HTML的sprintf:sprintf的投用%警告字符串

<table width="100%".... 

看來%符號導致警告。我如何正確地逃避那個角色?

<table width="100%%".... 

去除結尾「以及%符號給我

<table width="100 border="0"... 
+0

OK,這是PEBKAC。我在sprintf'in兩次。 –

回答

2

你需要與其他%逃吧:

<table width="100%%".... 
+0

如果我這樣做,我最終得到: