Because you are using the view inside an attribute of the <a> tag, you need to make sure that the view is clean from line breaks, whitespaces, HTML tags, etc.
I added the following code to Toolset->Snippets->Code, to remove some views comments that are used by Toolset:
add_filter( 'wpv_filter_wpv_view_shortcode_output', 'prefix_clean_view_output', 5, 2 );
function prefix_clean_view_output( $out, $id ) {
$ids = array( 885 );
if ( in_array( $id, $ids )) {
$start = strpos( $out, '<!-- wpv-loop-start -->' );
if (
$start !== false
&& strrpos( $out, '<!-- wpv-loop-end -->', $start ) !== false
) {
$start = $start + strlen( '<!-- wpv-loop-start -->' );
$out = substr( $out , $start );
$end = strrpos( $out, '<!-- wpv-loop-end -->' );
$out = substr( $out, 0, $end );
} else {
$start = strpos( $out, '>' );
if ( $start !== false) {
$out = substr( $out, $start + 1 );
$end = strpos( $out, '<' );
$out = trim(substr( $out, 0, $end ));
}
}
}
return $out;
}
Note the view's ID at line 3 (885).
At this stage, the return of the view still contains new line breaks and two HTML tags used by Toolset(div and script). I created the following shortcode to generate the view and clean it up from the HTML tags(<div> and <script>) and white spaces.
add_shortcode('prefix-link', function(){
$out = render_view(array(
'name' => 'edzesprogram-url-seged'
));
$out = preg_replace('/\s\s+/', '', $out);
$out = preg_replace( "/(<div.*?<\/div>)/is", '', $out );
$out = preg_replace( "/(<script.*?<\/script>)/is", '', $out );
return $out;
});
And used the shortcode instead of the view.
<a href="<em><u>hidden link</u></em> field='datum' style='text' format='Y.m.d.'][/types]&estat=[types field='edzes-statusza'][/types]&etip=[types field='edzes-tipusa'][/types]&ejel=[types field='edzes-jellege'][/types]&ehos=[types field='edzes-hossza' format='FIELD_VALUEperc'][/types]&eleir=[types field='leiras' output='raw'][/types][prefix-link]">PROBLEMATIC LINK</a>
Please note that I moved the link code from the content template to the loop's directly in hidden link
I hope this helps. Let me know if you have any questions.