Forum


Replies: 1   Views: 2904
Removing symbols only
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by hhwebteam  · 19-09-2016 - 11:21

Afternoon Guys,

Is there a way to remove only the symbol leaving the word in place.

I have created a template with a question and empty file to be replaced. I am pulling out both the questions from the document and outputting on a web page. 

Once the questions have been answered I replace the empty fields with the answers and I need to remove the symbols from around the questions. Is there a way to do this. See example below

%%Type of insurance policy:%%              $POLICY1TYPE$ 

I need to remove the %% symbols from around the question leaving only the question and field. 

 

Thanks in advance