diff --git a/pkg/ottl/ottlfuncs/func_html_strip.go b/pkg/ottl/ottlfuncs/func_html_strip.go
index 3d6fabfd644a..347c9a613d9c 100644
--- a/pkg/ottl/ottlfuncs/func_html_strip.go
+++ b/pkg/ottl/ottlfuncs/func_html_strip.go
@@ -29,9 +29,9 @@ func createHTMLStripFunction[K any](_ ottl.FunctionContext, oArgs ottl.Arguments
return htmlStrip(args.HTMLSource), nil
}
-func htmlStrip[K any](HTMLSource ottl.StringGetter[K]) ottl.ExprFunc[K] {
+func htmlStrip[K any](unescapedSource ottl.StringGetter[K]) ottl.ExprFunc[K] {
return func(ctx context.Context, tCtx K) (any, error) {
- htmlString, err := HTMLSource.Get(ctx, tCtx)
+ htmlString, err := unescapedSource.Get(ctx, tCtx)
if err != nil {
return nil, err
}