[Premise]
I create a schema having text field (not RTF).
and I create TBB using c# that convert value of text field to html source.
i show a part of that TBB below.
val = ((TextField)field).Value;
package.PushItem(field.Name , package.CreateHtmlItem(val));
[Problem]
I enter below value to text field using above schema, as described below.
<script type="text/javascript">
// <![CDATA[
&
// ]]>
</script>
next, i preview(render with CT) the component. it convert below
<script type="text/javascript">
//
&
//
</script>
but I enter below value to text field using above schema, as described below.
<script type="text/javascript">
// <![CDATA[
&
// ]]>
</script></div>
next, i preview(render with CT) the component. it don't convert below
<script type="text/javascript">
// <![CDATA[
&
// ]]>
</script></div>
i guess that tridion convert above. why happen this? (The CT use one tbb and one DWT only. TBB is above TBB. DWT is the output of tbb)
using Template Builder, I know that TBB output don't be converted ,but DWT output is conveted.
I show DWT source below.
@@field.Name@@
[More]
I enter below value to text field using above schema, as described below.
<div>&</div>
<script type="text/javascript">
// <![CDATA[
&
// ]]>
</script>
i preview(render with CT) the component. it convert below
<div>&</div>
<script type="text/javascript">
//
&
//
</script>
but I enter below value to text field using above schema, as described below.
<div>&</div>
<script type="text/javascript">
// <![CDATA[
&
// ]]>
</script>
i preview(render with CT) the component. it don't convert below.
<div>&</div>
<script type="text/javascript">
// <![CDATA[
&
// ]]>
</script>