View Single Post
ישן 24-07-06, 09:03   # 10
miniature
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
הודעות: 1,754

miniature לא מחובר  

בהחלפה תוכל להשתמש בזה:
HTML קוד:
var str="this is |bold| strong word |/bold|"
str = str.replace(/\|bold\|([\s\S]+)\|\/bold\|/gi,"<strong> $1 </strong>")

/* In our word:
replace "|bold|(a String)|/bold|" 
with "<strong> (a String) </strong>"
*/ 
מתוך www.webmaster.org.il
__________________
יואב.

דרכים ליצירת קשר:

אימייל: thebigfire@walla.co.il
הודעה פרטית
  Reply With Quote