Hi,
I want to remove the html tags which are displayed as below:
Output:
View MiscellaneousPages #7
Page Name hty
Page Text <p> tyt</p>
I have used fckeditor and the code for the same is as follows:
<div class="form">
<?php $form=$this->beginWidget(‘CActiveForm’, array(
'id'=>'miscellaneous-pages-form',
'enableAjaxValidation'=>false,
)); ?>
<p class="note">Fields with <span class="required">*</span> are required.</p>
<?php echo $form->errorSummary($model); ?>
<div class="row">
<?php echo $form->labelEx($model,'page_name'); ?>
<?php echo $form->textField($model,'page_name',array('size'=>60,'maxlength'=>100)); ?>
<?php echo $form->error($model,'page_name'); ?>
</div>
<div class="row">
<?php echo $form->labelEx($model,'page_text'); ?>
<?php $this->widget('application.extensions.fckeditor.FCKEditorWidget',array(
‘model’ => $model,
‘attribute’ => ‘page_text’,
‘height’ => ‘600px’,
‘width’ => ‘100%’,
‘fckeditor’ => dirname(Yii::app()->basePath).’/protected/extensions/fckeditor/fckeditor.php’,
‘fckBasePath’ => Yii::app()->baseUrl.’/fckeditor/’)
); ?>
<?php echo $form->error($model,'page_text'); ?>
</div>
<div class="row buttons">
<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
</div>
<?php $this->endWidget(); ?>
</div><!-- form -->
I want to remove the html tags which are displayed?
Thanks