所以我有一段HTML的,看起來像這樣... <p>This is some copy. In this copy is the word hello</p>
我希望把這個詞招呼到使用jQuery的鏈接。 <p>This is some copy. In this copy is the word <a href="">hello</a></p>
這本身並不太難。我的問題是,如果這個詞已經開
我一直在絞盡腦汁,幾個小時,我需要通過一些HTML到一個函數,並取代鏈接和返回與替換鏈接的HTML。 <?php
final static public function replace_links($campaign_id, $text) {
$regexp = "<a\s[^>]*href=(\"??)([^\" >]*?)\\1[^>]*>(.*)<\/a>";
我有一個網頁下表 Assessment name | Task | Status
與動態鏈接 Test A | Practice | Not started
| Assessment | Not started
Test B | Practice | Not started
| Assessment | Not s
在我的第一頁我已經創建了動態鏈接是這樣的: do
{
$FilterModule = $row_mysql['Module']; /* Say it's value is 'xyz' for particular case */
echo "<a href='filterquery.php?filter=$FilterModule'>$FilterModule</a>";