Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 5 matches
Smarty Forum Index
Author Message
  Topic: delete all between two html tags
Conny64

Replies: 2
Views: 3438

PostForum: General   Posted: Thu May 09, 2019 5:15 pm   Subject: delete all between two html tags
this works for me


{mycontent|regex_replace:"!</?button(.*?)</button>!is":""}
  Topic: delete all between two html tags
Conny64

Replies: 2
Views: 3438

PostForum: General   Posted: Thu May 09, 2019 7:45 am   Subject: delete all between two html tags
I would like to delete all content incl. tag from a string

for example my Text :
"this is my text <button id='info'> xxx xxx xxx </button> and it was ..."

output
"th ...
  Topic: Array
Conny64

Replies: 2
Views: 34709

PostForum: Language: German   Posted: Tue Apr 30, 2019 11:57 am   Subject: Array
Ich denke ich habe es selbst hinbekommen.

Wäre es denn richtig wenn ich es so machen würde



{append var=adress_array value=['name'=>'Meier','vorname'=>'Franz','ort'=>'Köln'& ...
  Topic: Array
Conny64

Replies: 2
Views: 34709

PostForum: Language: German   Posted: Tue Apr 30, 2019 11:11 am   Subject: Array
Hi,

ich bin leider noch ziemlich am Anfang mit Smarty. Hoffe trotzdem auf Hilfe

Ich möchte Werte einem Array zuweisen und komme irgendwie nicht klar.

Ich schreib mal so wie ich es mir vorstel ...
  Topic: Text richtig kuerzen nach jedem Wort und nicht mitten drin
Conny64

Replies: 1
Views: 19569

PostForum: Language: German   Posted: Thu Mar 10, 2016 9:43 am   Subject: Text richtig kuerzen nach jedem Wort und nicht mitten drin
Hi, ich habe folgenden PHP snippet gefunden
und würde das gerne in Smarty machen.

Kann jemand einer Anfängerin helfen ?
$string = Der Text der abgeschnitten werden soll.
$length = Nach wie viele ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP